Skip to content

Commit 3df39a6

Browse files
committed
Set *_FOUND in Find*.cmake files
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 93c9ab0 commit 3df39a6

13 files changed

+19
-6
lines changed

cmake/FindCUDA.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if(WINDOWS)
2121
endif()
2222

2323
if(CUDA_LIBRARY)
24+
set(CUDA_FOUND TRUE)
2425
message(STATUS " Found cuda using find_library()")
2526
message(STATUS " CUDA_LIBRARIES = ${CUDA_LIBRARIES}")
2627
message(STATUS " CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")

cmake/FindJEMALLOC.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if(WINDOWS)
3434
endif()
3535

3636
if(JEMALLOC_LIBRARY)
37+
set(JEMALLOC_FOUND TRUE)
3738
message(STATUS " Found jemalloc using find_library()")
3839
else()
3940
set(MSG_NOT_FOUND

cmake/FindLIBHWLOC.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ if(WINDOWS)
5555
endif()
5656

5757
if(LIBHWLOC_LIBRARY)
58+
set(LIBHWLOC_FOUND TRUE)
5859
message(STATUS " Found libhwloc: ${LIBHWLOC_LIBRARY}")
5960

6061
if(LIBHWLOC_FIND_VERSION)

cmake/FindLIBNUMA.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ find_library(LIBNUMA_LIBRARY NAMES libnuma numa)
88
set(LIBNUMA_LIBRARIES ${LIBNUMA_LIBRARY})
99

1010
if(LIBNUMA_LIBRARY)
11+
set(LIBNUMA_FOUND TRUE)
1112
message(STATUS " Found libnuma using find_library()")
1213
else()
1314
set(MSG_NOT_FOUND

cmake/FindTBB.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if(WINDOWS)
3232
endif()
3333

3434
if(TBB_LIBRARY)
35+
set(TBB_FOUND TRUE)
3536
message(STATUS " Found tbb using find_library()")
3637
message(STATUS " TBB_LIBRARIES = ${TBB_LIBRARIES}")
3738
message(STATUS " TBB_INCLUDE_DIRS = ${TBB_INCLUDE_DIRS}")

cmake/FindZE_LOADER.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if(WINDOWS)
2121
endif()
2222

2323
if(ZE_LOADER_LIBRARY)
24+
set(ZE_LOADER_FOUND TRUE)
2425
message(STATUS " Found ZE_LOADER using find_library()")
2526
message(STATUS " ZE_LOADER_LIBRARIES = ${ZE_LOADER_LIBRARIES}")
2627
message(STATUS " ZE_LOADER_INCLUDE_DIRS = ${ZE_LOADER_INCLUDE_DIRS}")

examples/cmake/FindCUDA.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Intel Corporation
1+
# Copyright (C) 2024-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -17,6 +17,7 @@ if(WINDOWS)
1717
endif()
1818

1919
if(CUDA_LIBRARY)
20+
set(CUDA_FOUND TRUE)
2021
message(STATUS " Found cuda using find_library()")
2122
message(STATUS " CUDA_LIBRARIES = ${CUDA_LIBRARIES}")
2223
message(STATUS " CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")

examples/cmake/FindJEMALLOC.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Intel Corporation
1+
# Copyright (C) 2024-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -36,6 +36,7 @@ if(WINDOWS)
3636
endif()
3737

3838
if(JEMALLOC_LIBRARY)
39+
set(JEMALLOC_FOUND TRUE)
3940
message(STATUS " Found jemalloc using find_library()")
4041
message(STATUS " JEMALLOC_LIBRARIES = ${JEMALLOC_LIBRARIES}")
4142
message(STATUS " JEMALLOC_INCLUDE_DIRS = ${JEMALLOC_INCLUDE_DIRS}")

examples/cmake/FindLIBHWLOC.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Intel Corporation
1+
# Copyright (C) 2024-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -45,6 +45,7 @@ if(WINDOWS)
4545
endif()
4646

4747
if(LIBHWLOC_LIBRARY)
48+
set(LIBHWLOC_FOUND TRUE)
4849
message(STATUS " Found libhwloc using find_library()")
4950
message(STATUS " LIBHWLOC_LIBRARIES = ${LIBHWLOC_LIBRARIES}")
5051
message(STATUS " LIBHWLOC_INCLUDE_DIRS = ${LIBHWLOC_INCLUDE_DIRS}")

examples/cmake/FindLIBNUMA.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Intel Corporation
1+
# Copyright (C) 2024-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -8,6 +8,7 @@ find_library(LIBNUMA_LIBRARY NAMES libnuma numa)
88
set(LIBNUMA_LIBRARIES ${LIBNUMA_LIBRARY})
99

1010
if(LIBNUMA_LIBRARY)
11+
set(LIBNUMA_FOUND TRUE)
1112
message(STATUS " Found libnuma using find_library()")
1213
else()
1314
set(MSG_NOT_FOUND

0 commit comments

Comments
 (0)