Skip to content

Commit 50f1d7c

Browse files
committed
use *_DLL_DIRS env
1 parent 19c67d1 commit 50f1d7c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ else()
120120

121121
# add PATH to DLL on Windows
122122
set(DLL_PATH_LIST
123-
"${DLL_PATH_LIST};PATH=path_list_append:${LIBHWLOC_LIBRARY_DIRS}/../bin"
123+
"${DLL_PATH_LIST};PATH=path_list_append:${LIBHWLOC_DLL_DIRS}"
124124
)
125125
elseif(WINDOWS)
126126
include(FetchContent)
@@ -322,7 +322,7 @@ endif()
322322
if(TBB_FOUND OR TBB_LIBRARY_DIRS)
323323
# add PATH to DLL on Windows
324324
set(DLL_PATH_LIST
325-
"${DLL_PATH_LIST};PATH=path_list_append:${TBB_LIBRARY_DIRS}/../bin")
325+
"${DLL_PATH_LIST};PATH=path_list_append:${TBB_DLL_DIRS}")
326326
set(UMF_POOL_SCALABLE_ENABLED TRUE)
327327
else()
328328
message(
@@ -339,7 +339,7 @@ if(UMF_BUILD_LIBUMF_POOL_JEMALLOC)
339339
endif()
340340
# add PATH to DLL on Windows
341341
set(DLL_PATH_LIST
342-
"${DLL_PATH_LIST};PATH=path_list_append:${JEMALLOC_LIBRARY_DIRS}/../bin"
342+
"${DLL_PATH_LIST};PATH=path_list_append:${JEMALLOC_DLL_DIRS}"
343343
)
344344
endif()
345345

cmake/FindJEMALLOC.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else()
2828
endif()
2929

3030
if(WINDOWS)
31-
find_file(JEMALLOC_DLL NAMES "bin/jemalloc.dll")
31+
find_file(JEMALLOC_DLL NAMES "bin/jemalloc.dll" "jemalloc.dll")
3232
get_filename_component(JEMALLOC_DLL_DIR ${JEMALLOC_DLL} DIRECTORY)
3333
set(JEMALLOC_DLL_DIRS ${JEMALLOC_DLL_DIR})
3434
endif()

cmake/FindTBB.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else()
2626
endif()
2727

2828
if(WINDOWS)
29-
find_file(TBB_DLL NAMES "bin/tbbmalloc.dll")
29+
find_file(TBB_DLL NAMES "bin/tbbmalloc.dll" "tbbmalloc.dll")
3030
get_filename_component(TBB_DLL_DIR ${TBB_DLL} DIRECTORY)
3131
set(TBB_DLL_DIRS ${TBB_DLL_DIR})
3232
endif()

examples/cmake/FindLIBHWLOC.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ try_run(
3838
RUN_OUTPUT_VARIABLE LIBHWLOC_API_VERSION)
3939

4040
if(WINDOWS)
41-
find_file(LIBHWLOC_DLL NAMES "bin/hwloc-15.dll" "bin/libhwloc-15.dll")
41+
find_file(LIBHWLOC_DLL NAMES "bin/hwloc-15.dll" "bin/libhwloc-15.dll" "hwloc-15.dll" "libhwloc-15.dll")
4242
get_filename_component(LIBHWLOC_DLL_DIR ${LIBHWLOC_DLL} DIRECTORY)
4343
set(LIBHWLOC_DLL_DIRS ${LIBHWLOC_DLL_DIR})
4444
endif()

examples/cmake/FindTBB.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else()
2626
endif()
2727

2828
if(WINDOWS)
29-
find_file(TBB_DLL NAMES "bin/tbbmalloc.dll")
29+
find_file(TBB_DLL NAMES "bin/tbbmalloc.dll" "tbbmalloc.dll")
3030
get_filename_component(TBB_DLL_DIR ${TBB_DLL} DIRECTORY)
3131
set(TBB_DLL_DIRS ${TBB_DLL_DIR})
3232
endif()

0 commit comments

Comments
 (0)