mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 05:01:41 +00:00
- Apparently cmake_policy doesn't ignore unknown policies (which seems to defeat the purpose to me) so we must wrap them in code to detect if the policy is known.
This commit is contained in:
parent
7b6d245444
commit
890fb39d25
2 changed files with 9 additions and 3 deletions
|
@ -2,8 +2,12 @@ cmake_minimum_required( VERSION 2.4 )
|
||||||
project(ZDoom)
|
project(ZDoom)
|
||||||
|
|
||||||
if( COMMAND cmake_policy )
|
if( COMMAND cmake_policy )
|
||||||
|
if( POLICY CMP0011 )
|
||||||
cmake_policy( SET CMP0011 NEW )
|
cmake_policy( SET CMP0011 NEW )
|
||||||
|
endif( POLICY CMP0011 )
|
||||||
|
if( POLICY CMP0054 )
|
||||||
cmake_policy( SET CMP0054 NEW )
|
cmake_policy( SET CMP0054 NEW )
|
||||||
|
endif( POLICY CMP0054 )
|
||||||
endif( COMMAND cmake_policy )
|
endif( COMMAND cmake_policy )
|
||||||
|
|
||||||
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} )
|
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} )
|
||||||
|
|
|
@ -44,7 +44,9 @@ if(__create_launchers)
|
||||||
endif()
|
endif()
|
||||||
set(__create_launchers YES)
|
set(__create_launchers YES)
|
||||||
|
|
||||||
|
if( POLICY CMP0026 )
|
||||||
cmake_policy( SET CMP0026 OLD )
|
cmake_policy( SET CMP0026 OLD )
|
||||||
|
endif( POLICY CMP0026 )
|
||||||
|
|
||||||
include(CleanDirectoryList)
|
include(CleanDirectoryList)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue