Only set release build type when using not using multi config generator
This commit is contained in:
@@ -29,7 +29,8 @@ option(ENABLE_VULKAN "Enables Vulkan backend" ON)
|
|||||||
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
|
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
|
||||||
|
|
||||||
# Default to a Release build
|
# Default to a Release build
|
||||||
if (NOT CMAKE_BUILD_TYPE)
|
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||||
|
if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
||||||
message(STATUS "Defaulting to a Release build")
|
message(STATUS "Defaulting to a Release build")
|
||||||
endif()
|
endif()
|
||||||
@@ -127,7 +128,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
|||||||
# =======================================================================
|
# =======================================================================
|
||||||
set(CONAN_CMAKE_SILENT_OUTPUT TRUE)
|
set(CONAN_CMAKE_SILENT_OUTPUT TRUE)
|
||||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
||||||
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
||||||
if (YUZU_CONAN_INSTALLED)
|
if (YUZU_CONAN_INSTALLED)
|
||||||
if (IS_MULTI_CONFIG)
|
if (IS_MULTI_CONFIG)
|
||||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake)
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake)
|
||||||
|
|||||||
Reference in New Issue
Block a user