Skip to content

Commit

Permalink
Added public target_compile_features for auto and constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
ktonon committed Mar 27, 2018
1 parent d2dd27d commit 73f4871
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0.0)
cmake_minimum_required(VERSION 3.1.0)

##
## PROJECT
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 73f4871

Please sign in to comment.