Set policy CMP0043 only if it exists

Guard the command to avoid errors with CMake versions older than 3.0.
This commit is contained in:
Pier Luigi Fiorini 2014-06-27 23:20:30 +02:00
parent de57297c56
commit d8a5905d54

View File

@ -8,7 +8,9 @@ set(CMAKE_AUTOMOC ON)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# Silence CMake 3.0 warnings
cmake_policy(SET CMP0043 OLD)
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
# Set version
set(SDDM_VERSION_MAJOR 0)