Skip to content

Commit 91f14d7

Browse files
committed
fix setting LIBHWLOC_LIBRARIES on Windows
1 parent 58ba8e9 commit 91f14d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ else()
251251

252252
set(LIBHWLOC_INCLUDE_DIRS
253253
${hwloc_targ_SOURCE_DIR}/include;${hwloc_targ_BINARY_DIR}/include)
254-
set(LIBHWLOC_LIBRARY_DIRS
255-
${hwloc_targ_BINARY_DIR}/Release;${hwloc_targ_BINARY_DIR}/Debug)
254+
set(LIBHWLOC_LIBRARY_DIRS ${hwloc_targ_BINARY_DIR}/$<CONFIG>)
255+
set(LIBHWLOC_LIBRARIES ${hwloc_targ_BINARY_DIR}/$<CONFIG>/hwloc.lib)
256256
else()
257257
include(FetchContent)
258258
message(

0 commit comments

Comments
 (0)