Browse Source

Merge pull request #5367

Patrick (1):
      fix(build):add cmake_policy for CMP0071 to suppress warinings in cmake
reviewable/pr5371/r1
sudden6 7 years ago
parent
commit
a21592a419
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 5
      CMakeLists.txt

5
CMakeLists.txt

@ -15,6 +15,11 @@ option(USE_CCACHE "Use ccache when available" ON) @@ -15,6 +15,11 @@ option(USE_CCACHE "Use ccache when available" ON)
option(SPELL_CHECK "Enable spell cheching support" ON)
option(ASAN "Compile with AddressSanitizer" OFF)
# process generated files if cmake >= 3.10
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Options are: None, Debug, Release, RelWithDebInfo, MinSizeRel." FORCE)
endif()

Loading…
Cancel
Save