Skip to content

Commit 65e4659

Browse files
committed
use *_DLL_DIRS env
1 parent 3c340e6 commit 65e4659

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
@@ -117,7 +117,7 @@ if(NOT UMF_LINK_HWLOC_STATICALLY)
117117

118118
# add PATH to DLL on Windows
119119
set(DLL_PATH_LIST
120-
"${DLL_PATH_LIST};PATH=path_list_append:${LIBHWLOC_LIBRARY_DIRS}/../bin"
120+
"${DLL_PATH_LIST};PATH=path_list_append:${LIBHWLOC_DLL_DIRS}"
121121
)
122122
endif()
123123
# add PATH to DLL on Windows
@@ -337,7 +337,7 @@ endif()
337337
if(TBB_FOUND OR TBB_LIBRARY_DIRS)
338338
# add PATH to DLL on Windows
339339
set(DLL_PATH_LIST
340-
"${DLL_PATH_LIST};PATH=path_list_append:${TBB_LIBRARY_DIRS}/../bin")
340+
"${DLL_PATH_LIST};PATH=path_list_append:${TBB_DLL_DIRS}")
341341
set(UMF_POOL_SCALABLE_ENABLED TRUE)
342342
else()
343343
message(
@@ -354,7 +354,7 @@ if(UMF_BUILD_LIBUMF_POOL_JEMALLOC)
354354
endif()
355355
# add PATH to DLL on Windows
356356
set(DLL_PATH_LIST
357-
"${DLL_PATH_LIST};PATH=path_list_append:${JEMALLOC_LIBRARY_DIRS}/../bin"
357+
"${DLL_PATH_LIST};PATH=path_list_append:${JEMALLOC_DLL_DIRS}"
358358
)
359359
endif()
360360

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)