Set cmake-policy to new for clang compiler and rpath on MAC OS
authormalturan <mohammad.al-turany@cern.ch>
Wed, 11 Feb 2015 08:53:55 +0000 (09:53 +0100)
committerdberzano <dario.berzano@cern.ch>
Wed, 11 Feb 2015 16:20:42 +0000 (17:20 +0100)
CMakeLists.txt

index 362eaa0..928a9d3 100644 (file)
 
 cmake_minimum_required(VERSION 2.8.11 FATAL_ERROR)
 
+### CMP0025   Compiler id for Apple Clang is now AppleClang.
+### CMP0042   MACOSX_RPATH is enabled by default.
+
+foreach(p
+  CMP0025 # CMake 3.0
+  CMP0042 # CMake 3.0
+  )
+  if(POLICY ${p})
+  cmake_policy(SET ${p} NEW)
+  endif()
+endforeach()
+
 project(AliRoot CXX C)
 
 message(STATUS "CMake platform: ${CMAKE_SYSTEM}")