File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -282,10 +282,16 @@ else()
282
282
SOURCE_SUBDIR contrib/windows-cmake/ FIND_PACKAGE_ARGS )
283
283
FetchContent_MakeAvailable (hwloc_targ )
284
284
285
+ if (CMAKE_GENERATOR STREQUAL "Ninja" )
286
+ set (LIBHWLOC_LIBRARY_DIRS ${hwloc_targ_BINARY_DIR} / )
287
+ set (LIBHWLOC_LIBRARIES ${hwloc_targ_BINARY_DIR} /hwloc.lib )
288
+ else ()
289
+ set (LIBHWLOC_LIBRARY_DIRS ${hwloc_targ_BINARY_DIR} /$<CONFIG> )
290
+ set (LIBHWLOC_LIBRARIES ${hwloc_targ_BINARY_DIR} /$<CONFIG>/hwloc.lib )
291
+ endif ()
292
+
285
293
set (LIBHWLOC_INCLUDE_DIRS
286
294
${hwloc_targ_SOURCE_DIR} /include;${hwloc_targ_BINARY_DIR}/include )
287
- set (LIBHWLOC_LIBRARY_DIRS
288
- ${hwloc_targ_BINARY_DIR} /Release;${hwloc_targ_BINARY_DIR}/Debug )
289
295
else ()
290
296
include (FetchContent )
291
297
message (
You can’t perform that action at this time.
0 commit comments