Skip to content

Commit

Permalink
Merge pull request #2222 from alexreinking/patch-1
Browse files Browse the repository at this point in the history
Enable CMake policy CMP0077
  • Loading branch information
nlohmann committed Jun 27, 2020
2 parents c5ee222 + ec43371 commit 1af4f5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1af4f5f

Please sign in to comment.