From 6870ee0d7a0df3427845de07ddae1e2fd5768bbb Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sat, 28 Sep 2019 16:10:34 -0700 Subject: Set CXX_STANDARD by target property --- 3rdparty/libQtOlm | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/libQtOlm b/3rdparty/libQtOlm index b315884f..f449b2b3 160000 --- a/3rdparty/libQtOlm +++ b/3rdparty/libQtOlm @@ -1 +1 @@ -Subproject commit b315884f12a59ec21f43a4feb16a06eed1556126 +Subproject commit f449b2b3ed6cde97fe1494d48990947eb72c0852 diff --git a/CMakeLists.txt b/CMakeLists.txt index 72bb7124..951ef8c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,4 @@ cmake_minimum_required(VERSION 3.10) -set(CMAKE_CXX_STANDARD 17) if (POLICY CMP0092) cmake_policy(SET CMP0092 NEW) endif() @@ -226,6 +225,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION ${API_VERSION} INTERFACE_${PROJECT_NAME}_MAJOR_VERSION ${API_VERSION} + CXX_STANDARD 17 ) set_property(TARGET ${PROJECT_NAME} APPEND PROPERTY COMPATIBLE_INTERFACE_STRING ${PROJECT_NAME}_MAJOR_VERSION) -- cgit v1.2.3