Skip to content

Commit

Permalink
Require C++14 support for Au targets (#264)
Browse files Browse the repository at this point in the history
Helps #215.
  • Loading branch information
chiphogg authored Jul 12, 2024
1 parent fc050fa commit db7004e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/HeaderOnlyLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ function(header_only_library)
target_link_libraries(${ARG_NAME} INTERFACE ${ARG_DEPS})
endif()

# Require C++14 support.
#
# (We can consider adding a parameter to make this customizable later.)
target_compile_features(${ARG_NAME} INTERFACE cxx_std_14)

# If it's internal-only, change its export name accordingly.
# See: https://stackoverflow.com/a/68321274
if (ARG_INTERNAL_ONLY)
Expand Down

0 comments on commit db7004e

Please sign in to comment.