[llvm] r323404 - [cmake] Set cmake policy CMP0068 to suppress warnings on OSX
Don Hinton via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 20:55:19 PST 2018
Author: dhinton
Date: Wed Jan 24 20:55:18 2018
New Revision: 323404
URL: http://llvm.org/viewvc/llvm-project?rev=323404&view=rev
Log:
[cmake] Set cmake policy CMP0068 to suppress warnings on OSX
Set cmake policy CMP0068=NEW, if available, and set
"CMAKE_BUILD_WITH_INSTALL_NAME_DIR=On" globally to
maintain current behavior.
This is needed to suppress warnings on OSX starting with cmake version
3.9.6.
Differential Revision: https://reviews.llvm.org/D42463
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=323404&r1=323403&r2=323404&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Jan 24 20:55:18 2018
@@ -17,6 +17,11 @@ cmake_policy(SET CMP0056 NEW)
cmake_policy(SET CMP0057 NEW)
+if(POLICY CMP0068)
+ cmake_policy(SET CMP0068 NEW)
+ set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON)
+endif()
+
if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 7)
endif()
More information about the llvm-commits
mailing list