Skip to content

Commit

Permalink
Only select LLVM's libc++ for APPLE platforms. Linux distros do not i…
Browse files Browse the repository at this point in the history
…nclude it. Fixes COMBINE-lab#969.
  • Loading branch information
dslarm committed Oct 23, 2024
1 parent a2f6912 commit 130ab85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# If we have libc++, then try and use it
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-stdlib=libc++ HAVE_LIBCPP)
if(HAVE_LIBCPP)
if(HAVE_LIBCPP AND APPLE)
message("It appears that you're compiling with clang and that libc++ is available, so I'll use that")
list(APPEND TGT_COMPILE_FLAGS -stdlib=libc++)
set(BOOST_TOOLSET "clang")
Expand Down

0 comments on commit 130ab85

Please sign in to comment.