Skip to content

Commit

Permalink
Fix libstdc++ ABI config when using conan
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu343726 committed Jan 12, 2019
1 parent d22376e commit c63ee49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ if(EXISTS "${CONAN_BUILDINFO_FILE}")
include("${CONAN_BUILDINFO_FILE}")
conan_basic_setup(TARGETS)
set(TINYREFL_USING_CONAN_TARGETS TRUE CACHE INTERNAL "")

if(NOT MSVC)
if(CONAN_SETTINGS_COMPILER_LIBCXX STREQUAL "libstdc++11")
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)
endif()
if(CONAN_SETTINGS_COMPILER_LIBCXX STREQUAL "libstdc++")
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()
endif()
endif()

message(STATUS "Configuring tinyrefl external dependencies...")
Expand Down

0 comments on commit c63ee49

Please sign in to comment.