mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From josep...@apache.org
Subject [2/3] mesos git commit: CMake: Addressed warning from CMake policy CMP0042.
Date Wed, 25 Jan 2017 20:46:55 GMT
CMake: Addressed warning from CMake policy CMP0042.

By default, CMake will produce a warning on OSX when the
variable `CMAKE_MACOSX_RPATH` is not set.  This variable
determines whether installed libraries will have a runtime path
set or not.  By default, `CMAKE_MACOSX_RPATH` is `ON`.

To silence the warning, we must explicitly set
`CMAKE_MACOSX_RPATH`.

Review: https://reviews.apache.org/r/55632/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/59d9e3e7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/59d9e3e7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/59d9e3e7

Branch: refs/heads/master
Commit: 59d9e3e74847a1ad26c696151466b83e8378d3fc
Parents: 980dbc8
Author: Alex Clemmer <clemmer.alexander@gmail.com>
Authored: Tue Jan 24 17:48:36 2017 -0800
Committer: Joseph Wu <josephwu@apache.org>
Committed: Wed Jan 25 12:37:17 2017 -0800

----------------------------------------------------------------------
 cmake/MesosConfigure.cmake | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/59d9e3e7/cmake/MesosConfigure.cmake
----------------------------------------------------------------------
diff --git a/cmake/MesosConfigure.cmake b/cmake/MesosConfigure.cmake
index 8592001..ce127e1 100755
--- a/cmake/MesosConfigure.cmake
+++ b/cmake/MesosConfigure.cmake
@@ -35,6 +35,13 @@ message(STATUS "    BitMode:  ${BIT_MODE}")
 message(STATUS "    BuildID:  ${BUILDID}")
 message(STATUS "************************************************************")
 
+# CMAKE OPTIONS.
+################
+# NOTE: This silences a warning from CMake policy CMP0042.
+# By default, `CMAKE_MACOSX_RPATH` is ON, but CMake will continue to warn
+# unless the value is set explicitly in the build files.
+set(CMAKE_MACOSX_RPATH ON)
+
 # SET UP TESTING INFRASTRUCTURE.
 ################################
 enable_testing()


Mime
View raw message