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:
commit
a21592a419
|
@ -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…
Reference in New Issue
Block a user