Build: Prevent Catch from messing with user cmake preferences

Closes #25348

(cherry picked from commit 822a1a86d1)
This commit is contained in:
Shauren
2020-08-28 15:13:10 +02:00
parent bb185a78fb
commit 94668343c6

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()