Skip to content

Commit

Permalink
Allow option override by FetchContent
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStormN authored and HowardHinnant committed May 14, 2024
1 parent f986299 commit 1ead671
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ include( GNUInstallDirs )

get_directory_property( has_parent PARENT_DIRECTORY )

if (POLICY CMP0077)
# Allow CMake 3.13+ to override options when using FetchContent / add_subdirectory.
cmake_policy(SET CMP0077 NEW)
endif ()

# Override by setting on CMake command line.
set( CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard whose features are requested." )

Expand Down

0 comments on commit 1ead671

Please sign in to comment.