Check for policy
This commit is contained in:
parent
d8682b4403
commit
8b55cf8a3a
|
@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.7)
|
|||
|
||||
project(strawberry)
|
||||
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
|
||||
if(POLICY CMP0054)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif()
|
||||
if(POLICY CMP0074)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue