Skip to content

Commit 5b50423

Browse files
committed
rm hwloc version requirements from cmake files
1 parent 5dd8dfb commit 5b50423

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ option(LF_NO_HWLOC "Disable hwloc support" OFF)
6464

6565
if(NOT LF_NO_HWLOC)
6666
# Conan exports a proper target for hwloc, vcpkg does not.
67-
find_package(hwloc 2.0 QUIET)
67+
find_package(hwloc QUIET)
6868

6969
if(hwloc_FOUND)
7070
# Instructs libfork to use hwloc.
@@ -81,7 +81,7 @@ if(NOT LF_NO_HWLOC)
8181

8282
unset(HWLOC_FOUND CACHE) # Prevent dirty cache
8383

84-
pkg_search_module(HWLOC QUIET IMPORTED_TARGET hwloc>=2.0)
84+
pkg_search_module(HWLOC QUIET IMPORTED_TARGET hwloc)
8585

8686
if(HWLOC_FOUND)
8787
# Instructs libfork to use hwloc.

cmake/install-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include(CMakeFindDependencyMacro)
55
find_dependency(Threads)
66

77
if (@hwloc_FOUND@)
8-
find_dependency(hwloc 2.0)
8+
find_dependency(REQUIRED hwloc)
99
elseif(@HWLOC_FOUND@)
1010
find_dependency(PkgConfig)
1111
pkg_search_module(HWLOC REQUIRED IMPORTED_TARGET hwloc)

0 commit comments

Comments
 (0)