summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:35:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:35:40 +0200
commit70b82f82e8769aada42c5f956ac383e020c954d1 (patch)
tree0e88830234f9f3b64d4eef9b55d3a728b1a89b16
parent809dd577ab80f6bd34fdb88b7e521f89c3c73cca (diff)
cmake: do compile tests w/o linking
-rw-r--r--cmake/opentrack-platform.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index be09d6db..e2a292dc 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -44,6 +44,8 @@ include_directories("${CMAKE_SOURCE_DIR}")
set(opentrack_maintainer-mode FALSE CACHE INTERNAL "Select if developing core code (not modules)")
+set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
+
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_DEFAULT 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)