mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +02:00
Apparently cmake policies are not forward-compatible (facepalm) so only set them on versions that understand them
This commit is contained in:
@@ -2,11 +2,14 @@ PROJECT( tomahawk )
|
|||||||
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.6 )
|
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.6 )
|
||||||
SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
|
SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
|
||||||
CMAKE_POLICY(SET CMP0017 NEW)
|
CMAKE_POLICY(SET CMP0017 NEW)
|
||||||
|
|
||||||
|
IF ( CMAKE_VERSION VERSION_EQUAL 2.8.12 OR CMAKE_VERSION GREATER 2.8.12 )
|
||||||
CMAKE_POLICY(SET CMP0022 NEW)
|
CMAKE_POLICY(SET CMP0022 NEW)
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# Update to NEW and fix things up when we can depend on 2.8.12
|
# Update to NEW and fix things up when we can depend on 2.8.12
|
||||||
CMAKE_POLICY(SET CMP0023 OLD)
|
CMAKE_POLICY(SET CMP0023 OLD)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
INCLUDE(CMakeDependentOption)
|
INCLUDE(CMakeDependentOption)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user