Move to line 47.
This commit is contained in:
parent
ce505f6814
commit
0f9e399351
@ -45,6 +45,7 @@ macro(set_flags)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -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")
|
||||
add_flags_cxx("-stdlib=libc++")
|
||||
else()
|
||||
add_flags_cxx("-pthread")
|
||||
endif()
|
||||
@ -188,9 +189,6 @@ macro(set_exe_flags)
|
||||
add_flags_cxx("-ffast-math")
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
if (APPLE)
|
||||
add_flags_cxx("-stdlib=libc++")
|
||||
endif()
|
||||
# clang does not provide the __extern_always_inline macro and a part of libm depends on this when using fast-math
|
||||
add_flags_cxx("-D__extern_always_inline=inline")
|
||||
add_flags_cxx("-Werror -Weverything -Wno-c++98-compat-pedantic -Wno-string-conversion")
|
||||
|
Loading…
Reference in New Issue
Block a user