aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-29 22:14:56 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-29 22:14:56 +0200
commit50f94729112e9ad6e6dc412b096a685fbe7b2b04 (patch)
tree7de19d5855cc1166eb6296dfcac18fc19bfe6e0a /CMakeLists.txt
parentMerge pull request #4446 (diff)
parentMake depends use self built clang for darwin (diff)
downloadmonero-50f94729112e9ad6e6dc412b096a685fbe7b2b04.tar.xz
Merge pull request #4448
6a781408 Make depends use self built clang for darwin (TheCharlatan)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a7746371e..fc0ecb14b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -883,10 +883,14 @@ list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
if (HIDAPI_FOUND)
if (APPLE)
- find_library(COREFOUNDATION CoreFoundation)
- find_library(IOKIT IOKit)
- list(APPEND EXTRA_LIBRARIES ${IOKIT})
- list(APPEND EXTRA_LIBRARIES ${COREFOUNDATION})
+ if(DEPENDS)
+ list(APPEND EXTRA_LIBRARIES "-framework Foundation -framework IOKit")
+ else()
+ find_library(COREFOUNDATION CoreFoundation)
+ find_library(IOKIT IOKit)
+ list(APPEND EXTRA_LIBRARIES ${IOKIT})
+ list(APPEND EXTRA_LIBRARIES ${COREFOUNDATION})
+ endif()
endif()
if (WIN32)
list(APPEND EXTRA_LIBRARIES setupapi)