mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Allow option override by FetchContent
This commit is contained in:
parent
f986299fbb
commit
1ead6715de
@ -24,6 +24,11 @@ include( GNUInstallDirs )
|
|||||||
|
|
||||||
get_directory_property( has_parent PARENT_DIRECTORY )
|
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.
|
# Override by setting on CMake command line.
|
||||||
set( CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard whose features are requested." )
|
set( CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard whose features are requested." )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user