Fix (unreported) broken CMake regex to filter RNA C/C++ files.
No idea _why_ the previous regex is not working as expected, AFAICS it is valid. But it did fill `GENSRC_C` list with all RNA `.cc` generated files.
This commit is contained in:
@@ -169,9 +169,9 @@ elseif(MSVC)
|
||||
endif()
|
||||
|
||||
set(GENSRC_C ${GENSRC})
|
||||
list(FILTER GENSRC_C INCLUDE REGEX ".*\.c$")
|
||||
list(FILTER GENSRC_C INCLUDE REGEX "[a-zA-Z0-9_-]\.c$")
|
||||
set(GENSRC_CXX ${GENSRC})
|
||||
list(FILTER GENSRC_CXX INCLUDE REGEX ".*\.cc$")
|
||||
list(FILTER GENSRC_CXX INCLUDE REGEX "[a-zA-Z0-9_-]\.cc$")
|
||||
|
||||
if(GENSRC_FLAGS)
|
||||
set_source_files_properties(${GENSRC} PROPERTIES COMPILE_FLAGS "${GENSRC_FLAGS}")
|
||||
|
||||
Reference in New Issue
Block a user