From: Michihiro NAKAJIMA Date: Mon, 13 Oct 2014 14:04:26 +0000 (+0900) Subject: Fix CMake warnings on Mac OS X. X-Git-Tag: v3.1.900a~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1052c76567cada57fb7ae4ed86ac71eecb786ea0;p=thirdparty%2Flibarchive.git Fix CMake warnings on Mac OS X. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 74c83f6f9..7f6cc4481 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.6 FATAL_ERROR) +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) # PROJECT(libarchive C) # @@ -35,6 +35,9 @@ ENDIF(NOT "${CMAKE_BUILD_TYPE}" # On MacOS, prefer MacPorts libraries to system libraries. # I haven't come up with a compelling argument for this to be conditional. list(APPEND CMAKE_PREFIX_PATH /opt/local) +# Enable @rpath in the install name. +# detail in "cmake --help-policy CMP0042" +SET(CMAKE_MACOSX_RPATH ON) # # Version - read from 'version' file.