CMakeLists: build deprecated Corrade/Magnum for debug only.
This commit is contained in:
parent
3f580f77db
commit
4d94b10501
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ set(WITH_INTERCONNECT ON CACHE BOOL "" FORCE)
|
|||
set(WITH_PLUGINMANAGER OFF CACHE BOOL "" FORCE)
|
||||
set(WITH_TESTSUITE OFF 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)
|
||||
add_subdirectory(third-party/corrade EXCLUDE_FROM_ALL)
|
||||
|
||||
|
|
Loading…
Reference in a new issue