Unverified Commit d68acc5d authored by Dominik Charousset's avatar Dominik Charousset Committed by GitHub

Merge pull request #1038

Add -pthread flag when looking for libc++
parents 77e73ad4 130fcb20
...@@ -338,7 +338,11 @@ if (NOT caf_is_subproject) ...@@ -338,7 +338,11 @@ if (NOT caf_is_subproject)
# add -stdlib=libc++ when using Clang if possible # add -stdlib=libc++ when using Clang if possible
if(NOT CAF_NO_AUTO_LIBCPP AND CMAKE_CXX_COMPILER_ID MATCHES "Clang") if(NOT CAF_NO_AUTO_LIBCPP AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CXXFLAGS_BACKUP "${CMAKE_CXX_FLAGS}") set(CXXFLAGS_BACKUP "${CMAKE_CXX_FLAGS}")
if(NOT APPLE AND NOT WIN32)
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -pthread")
else()
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++") set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
endif()
try_run(ProgramResult try_run(ProgramResult
CompilationSucceeded CompilationSucceeded
"${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment