Skip to content

Commit

Permalink
use libc++ on macOS and libstdc++ on other platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 26, 2024
1 parent c2123e0 commit 1b070e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ if (${OPTION_TARGET_DOCS})
endif()

if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# if (NOT WINDOWS)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
# endif()
if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
elseif (MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
else()
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" CACHE STRING "Choose minimum deploy target for Macos machines")
endif()

Expand Down

0 comments on commit 1b070e1

Please sign in to comment.