mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
Silence CMake policy warning on macos.
See: https://cmake.org/cmake/help/v3.0/policy/CMP0042.html
This commit is contained in:
parent
dd580d7bc7
commit
52db01ea6d
@ -174,6 +174,9 @@ include_directories(src contrib/epee/include external "${CMAKE_BINARY_DIR}/versi
|
|||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
include_directories(SYSTEM /usr/include/malloc)
|
include_directories(SYSTEM /usr/include/malloc)
|
||||||
|
if(POLICY CMP0042)
|
||||||
|
cmake_policy(SET CMP0042 NEW)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC OR MINGW)
|
if(MSVC OR MINGW)
|
||||||
|
@ -3,6 +3,10 @@ project (otshell CXX)
|
|||||||
|
|
||||||
# Add executable
|
# Add executable
|
||||||
|
|
||||||
|
if(APPLE AND POLICY CMP0042)
|
||||||
|
cmake_policy(SET CMP0042 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
file(GLOB otshell_utils_sources # All files in directory:
|
file(GLOB otshell_utils_sources # All files in directory:
|
||||||
"*.h"
|
"*.h"
|
||||||
"*.hpp"
|
"*.hpp"
|
||||||
|
Loading…
Reference in New Issue
Block a user