Needs the -stdlib linker flag too.
This commit is contained in:
parent
0f9e399351
commit
d094beb45a
@ -46,6 +46,7 @@ macro(set_flags)
|
|||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
|
||||||
add_flags_cxx("-stdlib=libc++")
|
add_flags_cxx("-stdlib=libc++")
|
||||||
|
add_flags_lnk("-stdlib=libc++")
|
||||||
else()
|
else()
|
||||||
add_flags_cxx("-pthread")
|
add_flags_cxx("-pthread")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user