CMakeLists: disable deprecated stuff globally.

'Twas causing issues with Containers::Array vs Magnum::Array, the latter
of which is deprecated.
This commit is contained in:
Guillaume Jacquemin 2022-04-29 22:19:13 +02:00
parent b0b227471a
commit 7aa750b2b1

View file

@ -29,11 +29,7 @@ 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)
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) 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)