We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f637b25 commit 6c5522bCopy full SHA for 6c5522b
cmake/O2GetListOfMacros.cmake
@@ -18,5 +18,9 @@ function(o2_get_list_of_macros dir varname)
18
file(GLOB_RECURSE listOfMacros RELATIVE ${CMAKE_SOURCE_DIR} ${dir}/*.C)
19
# Case sensitive filtering of .C files (to avoid .c files on Mac)
20
list(FILTER listOfMacros INCLUDE REGEX "^.*\\.C$")
21
+ # Remove macros that were copied to the build directory, to deal with
22
+ # the (non-recommended-but-can-happen) case where the build directory
23
+ # is a subdirectory of the source dir
24
+ list(FILTER listOfMacros EXCLUDE REGEX "/stage/${CMAKE_INSTALL_DATADIR}")
25
set(${varname} ${listOfMacros} PARENT_SCOPE)
26
endfunction()
0 commit comments