We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa917ae commit 24901ddCopy full SHA for 24901dd
PrecompiledHeader.cmake
@@ -76,9 +76,14 @@ function(export_all_flags _filename)
76
endfunction()
77
78
function(add_precompiled_header _target _input)
79
- cmake_parse_arguments(_PCH "FORCEINCLUDE" "SOURCE_CXX:SOURCE_C" "" ${ARGN})
+ cmake_parse_arguments(_PCH "FORCEINCLUDE" "SOURCE_CXX;SOURCE_C" "" ${ARGN})
80
81
+ get_filename_component(_input_dir ${_input} DIRECTORY)
82
get_filename_component(_input_we ${_input} NAME_WE)
83
+ if(_input_dir)
84
+ set(_input_we "${_input_dir}/${_input_we}")
85
+ endif()
86
+
87
if(NOT _PCH_SOURCE_CXX)
88
set(_PCH_SOURCE_CXX "${_input_we}.cpp")
89
endif()
0 commit comments