mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-09 17:59:00 +08:00
87179c1b43
* [hwloc] update to 2.7.0 * update version * update patch * update version * fix-osx-support * update version * set CoreFoundation * update version * reset CoreFoundation * update version * [hpx] Fix dependency hwloc * version * [hpx] Add osx component iokit * overwrite hpx version * version * update version * osx support * overwrite version * add license * format-manifest * update version * add license * update version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
16 lines
592 B
Diff
16 lines
592 B
Diff
diff --git a/cmake/FindHwloc.cmake b/cmake/FindHwloc.cmake
|
|
index cdede78..6967abf 100644
|
|
--- a/cmake/FindHwloc.cmake
|
|
+++ b/cmake/FindHwloc.cmake
|
|
@@ -71,6 +71,9 @@ if(NOT TARGET Hwloc::hwloc)
|
|
add_library(Hwloc::hwloc INTERFACE IMPORTED)
|
|
target_include_directories(Hwloc::hwloc SYSTEM INTERFACE ${HWLOC_INCLUDE_DIR})
|
|
target_link_libraries(Hwloc::hwloc INTERFACE ${HWLOC_LIBRARIES})
|
|
-
|
|
+ if(APPLE)
|
|
+ target_link_libraries(Hwloc::hwloc INTERFACE "-framework CoreFoundation" "-framework IOKit")
|
|
+ endif()
|
|
+
|
|
mark_as_advanced(HWLOC_ROOT HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
|
|
endif()
|