Build: Prevent Catch from messing with user cmake preferences

Closes #25348
This commit is contained in:
Shauren
2020-08-28 15:13:10 +02:00
parent 19f69fcf06
commit 822a1a86d1

View File

@@ -98,4 +98,10 @@ if(BUILD_TESTING)
include(Catch)
add_subdirectory(tests)
# Catch cmakefile messes with our settings we explicitly leave up to the user
# restore user preference
if (NOT WITH_SOURCE_TREE STREQUAL "hierarchical-folders")
set_property(GLOBAL PROPERTY USE_FOLDERS OFF)
endif()
endif()