Browse Source

Fix flags

-stdlib should not be changed. It breaks build on e.g. FreeBSD where libc++ is used.
pull/1014/head
Dmitry Marakasov 7 years ago committed by GitHub
parent
commit
4485d6fdf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      build/CMakeLists.txt

2
build/CMakeLists.txt

@ -180,7 +180,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") @@ -180,7 +180,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# more tweaks
if (NOT (MSVC OR MSYS OR APPLE))
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-const-variable -Wno-overloaded-virtual -Wno-c99-extensions -stdlib=libstdc++" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-const-variable -Wno-overloaded-virtual -Wno-c99-extensions" )
endif()
endif ()

Loading…
Cancel
Save