summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-platform.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-28 12:52:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-28 12:52:30 +0100
commitb18e135583659b6bdc0ae40297e9abb0e51188a8 (patch)
treec2691117967a57a48d904501fbdbd976e8f824c5 /cmake/opentrack-platform.cmake
parent3d09eae2face6a10a40625a84f933ea394a465fa (diff)
cmake: fix msvc build
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r--cmake/opentrack-platform.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index 2c1ab6a9..72af4399 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -86,10 +86,12 @@ if(APPLE)
set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${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)
+if(NOT MSVC)
+ set(CMAKE_CXX_STANDARD 14)
+ set(CMAKE_CXX_STANDARD_DEFAULT 14)
+ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
+ set(CMAKE_CXX_EXTENSIONS FALSE)
+endif()
set_property(GLOBAL PROPERTY USE_FOLDERS OFF)