|
|
@@ -125,6 +125,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
|
|
|
endif()
|
|
|
|
|
|
set(CLR_CMAKE_PLATFORM_LINUX 1)
|
|
|
+ # OSX 10.12 Clang deprecates libstdc++ [See GH #1599]
|
|
|
+ # So, -Werror is linux only for now
|
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
|
|
|
+ -Werror"
|
|
|
+ )
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
|
|
add_definitions(
|
|
|
-DPLATFORM_UNIX
|
|
|
@@ -201,15 +206,6 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
|
|
|
# prevent the required interface is being exported
|
|
|
# clang by default sets fvisibility=default
|
|
|
|
|
|
-if(NOT CC_XCODE_PROJECT)
|
|
|
- # todo: enable for XCode too
|
|
|
- # XCode is a bit more strict
|
|
|
- # keep this until we fix all the warnings there.
|
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
|
|
|
- -Werror"
|
|
|
- )
|
|
|
-endif()
|
|
|
-
|
|
|
# CXX WARNING FLAGS
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
|
|
|
-Wno-ignored-attributes\
|