Skip to content

Commit 901aa3a

Browse files
committed
Use *_FOUND in CMake files
Fixes: #1192 Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 32067e0 commit 901aa3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ if(NOT UMF_DISABLE_HWLOC AND (NOT UMF_LINK_HWLOC_STATICALLY))
263263
pkg_check_modules(LIBHWLOC hwloc>=2.3.0)
264264
if(NOT LIBHWLOC_FOUND)
265265
find_package(LIBHWLOC 2.3.0 COMPONENTS hwloc)
266-
if(LIBHWLOC_LIBRARIES)
266+
if(LIBHWLOC_FOUND)
267267
set(LIBHWLOC_AVAILABLE TRUE)
268268
endif()
269269
endif()
@@ -444,7 +444,7 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER)
444444
endif()
445445
message(STATUS "LEVEL_ZERO_INCLUDE_DIRS = ${LEVEL_ZERO_INCLUDE_DIRS}")
446446

447-
if(ZE_LOADER_LIBRARIES)
447+
if(ZE_LOADER_FOUND)
448448
set(UMF_LEVEL_ZERO_ENABLED TRUE)
449449
else()
450450
message(
@@ -500,7 +500,7 @@ if(UMF_BUILD_CUDA_PROVIDER)
500500
endif()
501501
message(STATUS "CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")
502502

503-
if(CUDA_LIBRARIES)
503+
if(CUDA_FOUND)
504504
set(UMF_CUDA_ENABLED TRUE)
505505
else()
506506
message(

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ if(LINUX
674674
)
675675
endif()
676676

677-
if(LIBNUMA_LIBRARIES)
677+
if(LIBNUMA_FOUND)
678678
set(EXAMPLES ${EXAMPLES} memspace_hmat memspace_numa)
679679
else()
680680
message(

0 commit comments

Comments
 (0)