From 598d30f8b8ae084da05376752db3f20972ce1c7f 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 (cherry picked from commit 10ee2f72d9b3acc58b7dff784d1f79cb52dcc4fa) --- client/Mac/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/Mac/CMakeLists.txt b/client/Mac/CMakeLists.txt index 8b7ae739f..07266ecd4 100755 --- a/client/Mac/CMakeLists.txt +++ b/client/Mac/CMakeLists.txt @@ -1,5 +1,11 @@ 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-LIB")