Permalink
Browse files

Check for an Apple system when defining Mac specific policies

  • Loading branch information...
1 parent 6e64985 commit d2883f3edf95d329fea96ddf2d7e156afa4180fe @lrascao lrascao committed Jan 9, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 CMakeLists.txt
View
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.6)
cmake_policy(SET CMP0001 NEW) # don't use MAKE_BACKWARDS_COMPATIBILITY but policies instead
-cmake_policy(SET CMP0042 NEW) # use MACOSX_RPATH
+# CMP0042 is an apple specific option
+if (${APPLE})
+ cmake_policy(SET CMP0042 NEW) # use MACOSX_RPATH
+endif ()
project(chipmunk)

0 comments on commit d2883f3

Please sign in to comment.