Can't use ${CMAKE_BUILD_TYPE} in conditional expression with multi-config

This commit is contained in:
Dan Paulat 2023-12-20 22:05:55 -06:00
parent dbfacdfd28
commit fef83c8aa7

View file

@ -22,13 +22,6 @@ set_property(DIRECTORY
PROPERTY CMAKE_CONFIGURE_DEPENDS PROPERTY CMAKE_CONFIGURE_DEPENDS
conanfile.py) conanfile.py)
# Don't use RelWithDebInfo Conan packages
if (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
set(conan_build_type "Release")
else()
set(conan_build_type ${CMAKE_BUILD_TYPE})
endif()
conan_cmake_autodetect(settings conan_cmake_autodetect(settings
BUILD_TYPE ${conan_build_type}) BUILD_TYPE ${conan_build_type})