mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-26 19:09:06 +00:00
Merge topic 'gtest-discover-tests-cleanup'
d86da0af70 GoogleTest: cleanup file generation Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !11254
This commit is contained in:
commit
c3b65c19ba
@ -756,24 +756,18 @@ function(gtest_discover_tests target)
|
||||
)
|
||||
|
||||
if(GENERATOR_IS_MULTI_CONFIG)
|
||||
foreach(_config ${CMAKE_CONFIGURATION_TYPES})
|
||||
file(GENERATE
|
||||
OUTPUT "${ctest_file_base}_include-${_config}.cmake"
|
||||
CONTENT "${ctest_include_content}"
|
||||
CONDITION $<CONFIG:${_config}>
|
||||
)
|
||||
endforeach()
|
||||
file(GENERATE
|
||||
OUTPUT "${ctest_file_base}_include-$<CONFIG>.cmake"
|
||||
CONTENT "${ctest_include_content}"
|
||||
)
|
||||
file(WRITE "${ctest_include_file}"
|
||||
"include(\"${ctest_file_base}_include-\${CTEST_CONFIGURATION_TYPE}.cmake\")"
|
||||
)
|
||||
else()
|
||||
file(GENERATE
|
||||
OUTPUT "${ctest_file_base}_include.cmake"
|
||||
OUTPUT "${ctest_include_file}"
|
||||
CONTENT "${ctest_include_content}"
|
||||
)
|
||||
file(WRITE "${ctest_include_file}"
|
||||
"include(\"${ctest_file_base}_include.cmake\")"
|
||||
)
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user