2
0
mirror of https://github.com/oatpp/oatpp.git synced 2025-04-24 19:10:23 +08:00

Merge pull request from sodevel/fix/cmake-variable-removal

Prevent unintended removal of local CMake variables
This commit is contained in:
Leonid Stryzhevskyi 2023-10-21 02:59:04 +03:00 committed by GitHub
commit 33c076d4b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,28 +74,28 @@ function(set_target_source_groups arg_TARGET)
endif()
endforeach()
set(filterSources ${sourceFiles})
set(filterSources "${sourceFiles}")
list(FILTER filterSources INCLUDE REGEX "/.+\\.h(h|pp)?$")
source_group(
TREE "${sourceTreeDir}"
PREFIX "Header Files"
FILES ${filterSources}
)
set(filterSources ${sourceFiles})
set(filterSources "${sourceFiles}")
list(FILTER filterSources INCLUDE REGEX "/.+\\.h(h|pp)?\\.in$")
source_group(
TREE "${sourceTreeDir}"
PREFIX "Header Templates"
FILES ${filterSources}
)
set(filterSources ${sourceFiles})
set(filterSources "${sourceFiles}")
list(FILTER filterSources INCLUDE REGEX "/.+\\.c(c|xx|pp)?$")
source_group(
TREE "${sourceTreeDir}"
PREFIX "Source Files"
FILES ${filterSources}
)
set(filterSources ${sourceFiles})
set(filterSources "${sourceFiles}")
list(FILTER filterSources INCLUDE REGEX "/.+\\.c(c|xx|pp)?\\.in$")
source_group(
TREE "${sourceTreeDir}"
@ -103,7 +103,7 @@ function(set_target_source_groups arg_TARGET)
FILES ${filterSources}
)
set(filterSources ${binaryFiles})
set(filterSources "${binaryFiles}")
source_group(
TREE "${binaryTreeDir}"
PREFIX "Generated Files"