1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

CMake: Fix issue where module source file filters were too broad

This commit is contained in:
reuk 2021-02-06 17:07:54 +00:00
parent ad38182530
commit b94d4170f0

View file

@ -302,11 +302,11 @@ function(_juce_module_sources module_path output_path built_sources other_source
set(base_path "${module_glob}/${module_glob}")
set(module_cpp ${all_module_files})
list(FILTER module_cpp INCLUDE REGEX "${base_path}[^/]*\\.cpp$")
list(FILTER module_cpp INCLUDE REGEX "^${base_path}[^/]*\\.cpp$")
if(APPLE)
set(module_mm ${all_module_files})
list(FILTER module_mm INCLUDE REGEX "${base_path}[^/]*\\.(mm|r)$")
list(FILTER module_mm INCLUDE REGEX "^${base_path}[^/]*\\.(mm|r)$")
if(module_mm)
set(module_mm_replaced ${module_mm})