|
From: <th...@us...> - 2014-08-07 16:29:14
|
Revision: 559
http://sourceforge.net/p/cgreen/code/559
Author: thoni56
Date: 2014-08-07 16:28:54 +0000 (Thu, 07 Aug 2014)
Log Message:
-----------
Added setting of POLICY for @rpath on Darwin and cmake >= 3.0
Modified Paths:
--------------
trunk/cgreen/CMakeLists.txt
Modified: trunk/cgreen/CMakeLists.txt
===================================================================
--- trunk/cgreen/CMakeLists.txt 2014-08-01 13:27:58 UTC (rev 558)
+++ trunk/cgreen/CMakeLists.txt 2014-08-07 16:28:54 UTC (rev 559)
@@ -2,6 +2,11 @@
cmake_minimum_required(VERSION 2.6)
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
+if (NOT(CMAKE_MAJOR_VERSION LESS 3) AND APPLE)
+ if(POLICY CMP0042)
+ cmake_policy(SET CMP0042 NEW) # CMake 3.0 to use @rpath on MacOSX libraries
+ endif()
+endif()
project(cgreen C)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|