Skip to content

Commit

Permalink
Propagate c++17 requirement to dependent codes
Browse files Browse the repository at this point in the history
  • Loading branch information
allanleal committed Jul 2, 2021
1 parent 24fef8a commit c375114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ if (NOT DEFINED CMAKE_CXX_STANDARD)
set_target_properties(yaml-cpp
PROPERTIES
CXX_STANDARD 17)
target_compile_features(yaml-cpp PUBLIC cxx_std_17) # propagate to dependent libraries this requirement
endif()

target_compile_options(yaml-cpp
Expand Down

0 comments on commit c375114

Please sign in to comment.