From 70b82f82e8769aada42c5f956ac383e020c954d1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 24 Apr 2019 20:35:40 +0200 Subject: cmake: do compile tests w/o linking --- cmake/opentrack-platform.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmake/opentrack-platform.cmake') 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) -- cgit v1.2.3