From 10ee2f72d9b3acc58b7dff784d1f79cb52dcc4fa Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Fri, 12 Dec 2014 19:25:43 +0100 Subject: [PATCH] Mac: set policy to silent cmake >= 3.0 warnings Set the following policies to "OLD" if cmake version is greater than 2.8.12: CMP0026 - Disallow use of the LOCATION target property CMP0045 - Error on non-existent target in get_target_property --- client/Mac/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/Mac/CMakeLists.txt b/client/Mac/CMakeLists.txt index 8f0aca4dc..07fcecfed 100644 --- a/client/Mac/CMakeLists.txt +++ b/client/Mac/CMakeLists.txt @@ -1,6 +1,12 @@ project(MacFreeRDP-library) + +if(${CMAKE_VERSION} GREATER 2.8.12) + cmake_policy(SET CMP0026 OLD) + cmake_policy(SET CMP0045 OLD) +endif() + set(MODULE_NAME "MacFreeRDP-library") set(MODULE_OUTPUT_NAME "MacFreeRDP") set(MODULE_PREFIX "FREERDP_CLIENT_MAC_LIBRARY")