-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: squash gtest MACOSX_RPATH warnings from CMake cmp00042 (LLNL#162
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...rty_builtin/patches/gtest-2018-02-01-avoid-gtest-MACOSX_RPATH-warnings-from-CMP0042.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From dcbb29183cb27a4ce448d89d2d2a1843da472d92 Mon Sep 17 00:00:00 2001 | ||
From: Cyrus Harrison <[email protected]> | ||
Date: Tue, 5 Jun 2018 13:45:33 -0700 | ||
Subject: [PATCH] avoid gtest MACOSX_RPATH warnings from CMP0042 | ||
|
||
--- | ||
.../googletest-master-2018-02-01/googletest/CMakeLists.txt | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/thirdparty_builtin/googletest-master-2018-02-01/googletest/CMakeLists.txt b/thirdparty_builtin/googletest-master-2018-02-01/googletest/CMakeLists.txt | ||
index 1fe299f..e3827d7 100755 | ||
--- a/thirdparty_builtin/googletest-master-2018-02-01/googletest/CMakeLists.txt | ||
+++ b/thirdparty_builtin/googletest-master-2018-02-01/googletest/CMakeLists.txt | ||
@@ -61,6 +61,10 @@ if (POLICY CMP0063) # Visibility | ||
cmake_policy(SET CMP0063 NEW) | ||
endif (POLICY CMP0063) | ||
|
||
+if (POLICY CMP0042) # MACOSX_RPATH behavior | ||
+ cmake_policy(SET CMP0042 OLD) | ||
+endif (POLICY CMP0042) | ||
+ | ||
if (COMMAND set_up_hermetic_build) | ||
set_up_hermetic_build() | ||
endif() | ||
-- | ||
2.17.1 | ||
|