summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-28 06:48:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-28 06:48:20 +0100
commita07a6dac12c8bd8a97205fefa02fea4f66fbbf8f (patch)
tree29e5cfc03a3ac47fd864264acb41af34a2761613 /cmake
parentb3e31e929d84d00778c344d5fe7c6fde09405b23 (diff)
cmake: newer cmake requires setting c++ standard through t
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-platform.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index d062f561..2c1ab6a9 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -86,9 +86,10 @@ if(APPLE)
set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
endif()
-if(CMAKE_COMPILER_IS_GNUCXX)
- set(CMAKE_CXX_FLAGS " -std=c++14 ${CMAKE_CXX_FLAGS} ")
-endif()
+set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD_DEFAULT 14)
+set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
+set(CMAKE_CXX_EXTENSIONS FALSE)
set_property(GLOBAL PROPERTY USE_FOLDERS OFF)