aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2019-09-28 16:10:34 -0700
committerBlack Hat <bhat@encom.eu.org>2019-09-28 16:10:34 -0700
commit6870ee0d7a0df3427845de07ddae1e2fd5768bbb (patch)
tree06afdd2e409ee74b26334b9fb82f1adea79b84aa /CMakeLists.txt
parent71e7bbfbe774b422af178db57fe3e800a17f336d (diff)
downloadlibquotient-6870ee0d7a0df3427845de07ddae1e2fd5768bbb.tar.gz
libquotient-6870ee0d7a0df3427845de07ddae1e2fd5768bbb.zip
Set CXX_STANDARD by target property
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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)