Don't use RelWithDebInfo Conan packages

- Some packages fail to build (e.g., libtool)
This commit is contained in:
Dan Paulat 2023-05-07 13:07:02 -05:00
parent aee4fecacc
commit 6e4b9cd331

View file

@ -17,7 +17,15 @@ set_property(DIRECTORY
PROPERTY CMAKE_CONFIGURE_DEPENDS
conanfile.txt)
conan_cmake_autodetect(settings)
# 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})
conan_cmake_install(PATH_OR_REFERENCE ${PROJECT_SOURCE_DIR}
BUILD missing