aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:32:30 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:32:30 -0800
commit223055a86185444d2bcfe4b38bb4a44bbcddee66 (patch)
treee7c5510b110706bb56078b3ca8cee4b5410b208e /CMakeLists.txt
parentMerge pull request #1490 (diff)
parentSilence CMake policy warning on macos. (diff)
downloadmonero-223055a86185444d2bcfe4b38bb4a44bbcddee66.tar.xz
Merge pull request #1491
52db01ea Silence CMake policy warning on macos. See: https://cmake.org/cmake/help/v3.0/policy/CMP0042.html (Randi Joseph)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 87a53c368..e6e4afb62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -174,6 +174,9 @@ include_directories(src contrib/epee/include external "${CMAKE_BINARY_DIR}/versi
if(APPLE)
include_directories(SYSTEM /usr/include/malloc)
+ if(POLICY CMP0042)
+ cmake_policy(SET CMP0042 NEW)
+ endif()
endif()
if(MSVC OR MINGW)