summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-22 10:08:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-22 10:08:18 +0200
commit93d20668f6b30dac0e70598703e58d600903f333 (patch)
tree4c07025e70aac7ef2e23dab751eef703f391832a /CMakeLists.txt
parent59c4424ebc570a9494f1e35b9400b2969716b16a (diff)
nix warnings for C translation units
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 024f67f5..b1bbf4ba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,6 @@ if(APPLE)
set(CMAKE_STATIC_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_STATIC_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_EXE_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_MODULE_LINKER_FLAGS}")
- set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${CMAKE_CXX_FLAGS} ")
endif()
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
@@ -51,8 +50,8 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_definitions(-DOPENTRACK_API -DIN_OPENTRACK)
-if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
- add_definitions(-std=c++11)
+if(CMAKE_COMPILER_IS_GNUCXX OR APPLE)
+ set(CMAKE_CXX_FLAGS " -std=c++11 ${CMAKE_CXX_FLAGS} ")
endif()