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:
Bastien Montagne
2024-07-12 15:52:54 +02:00
parent 1eaa47c215
commit e576c19097

View File

@@ -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}")