From fef83c8aa7fd6dc2064cbf490b34e86189fcfb7b Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Wed, 20 Dec 2023 22:05:55 -0600 Subject: [PATCH] Can't use ${CMAKE_BUILD_TYPE} in conditional expression with multi-config --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4e86181..588e0482 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,13 +22,6 @@ set_property(DIRECTORY PROPERTY CMAKE_CONFIGURE_DEPENDS 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 BUILD_TYPE ${conan_build_type})