Skip to content

Commit

Permalink
build: Make C++17 a public compile feature
Browse files Browse the repository at this point in the history
C++17 is required when building against DPP. As such, it should be a
PUBLIC compile feature.
  • Loading branch information
NexAdn committed Jan 9, 2023
1 parent 5c03764 commit 373d694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ foreach (fullmodname ${subdirlist})
endif()
endforeach()

target_compile_features(dpp PRIVATE cxx_std_17)
target_compile_features(dpp PUBLIC cxx_std_17)
target_compile_features(dpp PRIVATE cxx_constexpr)
target_compile_features(dpp PRIVATE cxx_auto_type)
target_compile_features(dpp PRIVATE cxx_defaulted_functions)
Expand Down

0 comments on commit 373d694

Please sign in to comment.