1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #5367

Patrick (1):
      fix(build):add cmake_policy for CMP0071 to suppress warinings in cmake
This commit is contained in:
sudden6 2018-10-05 08:41:26 +02:00
commit a21592a419
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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()