Merge pull request #2222 from alexreinking/patch-1
Enable CMake policy CMP0077
This commit is contained in:
commit
1af4f5f360
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@ include(ExternalProject)
|
|||
##
|
||||
## OPTIONS
|
||||
##
|
||||
|
||||
if (POLICY CMP0077)
|
||||
# Allow CMake 3.13+ to override options when using FetchContent / add_subdirectory.
|
||||
cmake_policy(SET CMP0077 NEW)
|
||||
endif ()
|
||||
|
||||
option(JSON_BuildTests "Build the unit tests when BUILD_TESTING is enabled." ON)
|
||||
option(JSON_Install "Install CMake targets during install step." ON)
|
||||
option(JSON_MultipleHeaders "Use non-amalgamated version of the library." OFF)
|
||||
|
|
Loading…
Reference in a new issue