From 73f487176664dca6fcf11c7118279e21eb97726b Mon Sep 17 00:00:00 2001 From: Kevin Tonon Date: Tue, 27 Mar 2018 12:51:30 -0400 Subject: [PATCH] Added public target_compile_features for auto and constexpr --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0acc750b8..9ba2a35283 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.1.0) ## ## PROJECT @@ -44,6 +44,12 @@ endif() ## add_library(${NLOHMANN_JSON_TARGET_NAME} INTERFACE) +target_compile_features(${NLOHMANN_JSON_TARGET_NAME} + INTERFACE + cxx_auto_type + cxx_constexpr +) + target_include_directories( ${NLOHMANN_JSON_TARGET_NAME} INTERFACE