mirror of
https://github.com/nlohmann/json.git
synced 2026-10-16 03:07:12 +00:00
Using target_compile_features to specify C++ 11 standard
This commit is contained in:
1 parent
d2dd27dc3b
commit
73cc5089e3
3 files changed
+9
-8
No files matched your search
+3
-1
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
|
||||
##
|
||||
## PROJECT
|
||||
@@ -44,6 +44,8 @@ endif()
|
||||
##
|
||||
add_library(${NLOHMANN_JSON_TARGET_NAME} INTERFACE)
|
||||
|
||||
target_compile_features(${NLOHMANN_JSON_TARGET_NAME} INTERFACE cxx_std_11)
|
||||
|
||||
target_include_directories(
|
||||
${NLOHMANN_JSON_TARGET_NAME}
|
||||
INTERFACE
|
||||
|
||||
Reference in new issue
Block a user