Allow option override by FetchContent

This commit is contained in:
Nikolay Baklicharov 2024-02-17 18:33:12 +02:00 committed by Howard Hinnant
parent f986299fbb
commit 1ead6715de

View File

@ -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." )