Setup conan compiler.libcxx correctly

This commit is contained in:
Sebastian Messmer 2020-06-27 00:53:55 -07:00
parent 7f6bbffc40
commit 3fdbda832c

View File

@ -1,9 +1,16 @@
macro(setup_conan)
include(cmake-utils/conan.cmake)
conan_cmake_run(
CONANFILE conanfile.py
BUILD missing)
if(MSVC)
conan_cmake_run(
CONANFILE conanfile.py
BUILD missing)
else()
conan_cmake_run(
CONANFILE conanfile.py
BUILD missing
SETTINGS compiler.libcxx=libstdc++11)
endif()
conan_basic_setup(TARGETS SKIP_STD)
if(CONAN_SETTINGS_COMPILER_LIBCXX STREQUAL "libstdc++")