Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(build):add cmake_policy for CMP0071 to suppress warinings in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
PTroester committed Oct 4, 2018
1 parent 96b5f5d commit 6a24014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6a24014

Please sign in to comment.