CMakeLists: build deprecated Corrade/Magnum for debug only.

This commit is contained in:
Guillaume Jacquemin 2022-04-24 16:41:22 +02:00
parent 3f580f77db
commit 4d94b10501

View file

@ -29,7 +29,11 @@ set(WITH_INTERCONNECT ON CACHE BOOL "" FORCE)
set(WITH_PLUGINMANAGER OFF CACHE BOOL "" FORCE) set(WITH_PLUGINMANAGER OFF CACHE BOOL "" FORCE)
set(WITH_TESTSUITE OFF CACHE BOOL "" FORCE) set(WITH_TESTSUITE OFF CACHE BOOL "" FORCE)
set(WITH_MAIN ON CACHE BOOL "" FORCE) set(WITH_MAIN ON CACHE BOOL "" FORCE)
set(BUILD_DEPRECATED ON CACHE BOOL "" FORCE) if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(BUILD_DEPRECATED ON CACHE BOOL "" FORCE)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(BUILD_DEPRECATED OFF CACHE BOOL "" FORCE)
endif()
set(UTILITY_USE_ANSI_COLORS ON CACHE BOOL "" FORCE) set(UTILITY_USE_ANSI_COLORS ON CACHE BOOL "" FORCE)
add_subdirectory(third-party/corrade EXCLUDE_FROM_ALL) add_subdirectory(third-party/corrade EXCLUDE_FROM_ALL)