Fix CMake configure warning

Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when
 unquoted.
This commit is contained in:
evpobr 2019-05-31 19:08:18 +05:00 committed by Erik de Castro Lopo
parent 0c3440aec0
commit cd03042ea9

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.1)
if(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES OR DEFINED ENV{CFLAGS} OR DEFINED ENV{CXXFLAGS}))
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo")