mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Build: Prevent Catch from messing with user cmake preferences
Closes #25348
(cherry picked from commit 822a1a86d1)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user