Skip to content

Commit 59c18d0

Browse files
authored
Merge pull request #1070 from ldorau/Remove_doubled_CMake_messages
Remove doubled CMake messages
2 parents 7010606 + 5b0940a commit 59c18d0

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ if(JEMALLOC_FOUND OR JEMALLOC_LIBRARIES)
232232
message(STATUS " JEMALLOC_LIBRARIES = ${JEMALLOC_LIBRARIES}")
233233
message(STATUS " JEMALLOC_INCLUDE_DIRS = ${JEMALLOC_INCLUDE_DIRS}")
234234
message(STATUS " JEMALLOC_LIBRARY_DIRS = ${JEMALLOC_LIBRARY_DIRS}")
235+
if(WINDOWS)
236+
message(STATUS " JEMALLOC_DLL_DIRS = ${JEMALLOC_DLL_DIRS}")
237+
endif()
235238
else()
236239
set(UMF_POOL_JEMALLOC_ENABLED FALSE)
237240
message(
@@ -336,6 +339,10 @@ else()
336339
message(STATUS " LIBHWLOC_LIBRARIES = ${LIBHWLOC_LIBRARIES}")
337340
message(STATUS " LIBHWLOC_INCLUDE_DIRS = ${LIBHWLOC_INCLUDE_DIRS}")
338341
message(STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS}")
342+
message(STATUS " LIBHWLOC_API_VERSION = ${LIBHWLOC_API_VERSION}")
343+
if(WINDOWS)
344+
message(STATUS " LIBHWLOC_DLL_DIRS = ${LIBHWLOC_DLL_DIRS}")
345+
endif()
339346
endif()
340347

341348
if(hwloc_targ_SOURCE_DIR)

cmake/FindJEMALLOC.cmake

+1-7
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

@@ -35,12 +35,6 @@ endif()
3535

3636
if(JEMALLOC_LIBRARY)
3737
message(STATUS " Found jemalloc using find_library()")
38-
message(STATUS " JEMALLOC_LIBRARIES = ${JEMALLOC_LIBRARIES}")
39-
message(STATUS " JEMALLOC_INCLUDE_DIRS = ${JEMALLOC_INCLUDE_DIRS}")
40-
message(STATUS " JEMALLOC_LIBRARY_DIRS = ${JEMALLOC_LIBRARY_DIRS}")
41-
if(WINDOWS)
42-
message(STATUS " JEMALLOC_DLL_DIRS = ${JEMALLOC_DLL_DIRS}")
43-
endif()
4438
else()
4539
set(MSG_NOT_FOUND
4640
"jemalloc NOT found (set CMAKE_PREFIX_PATH to point the location)")

cmake/FindLIBHWLOC.cmake

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
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

5+
function(print_hwloc_dirs)
6+
message(STATUS " LIBHWLOC_LIBRARIES = ${LIBHWLOC_LIBRARIES}")
7+
message(STATUS " LIBHWLOC_INCLUDE_DIRS = ${LIBHWLOC_INCLUDE_DIRS}")
8+
message(STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS}")
9+
message(STATUS " LIBHWLOC_API_VERSION = ${LIBHWLOC_API_VERSION}")
10+
if(WINDOWS)
11+
message(STATUS " LIBHWLOC_DLL_DIRS = ${LIBHWLOC_DLL_DIRS}")
12+
endif()
13+
endfunction()
14+
515
message(STATUS "Checking for module 'libhwloc' using find_library()")
616

717
find_library(LIBHWLOC_LIBRARY NAMES ${UMF_HWLOC_NAME})
@@ -46,19 +56,14 @@ endif()
4656

4757
if(LIBHWLOC_LIBRARY)
4858
message(STATUS " Found libhwloc using find_library()")
49-
message(STATUS " LIBHWLOC_LIBRARIES = ${LIBHWLOC_LIBRARIES}")
50-
message(STATUS " LIBHWLOC_INCLUDE_DIRS = ${LIBHWLOC_INCLUDE_DIRS}")
51-
message(STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS}")
52-
message(STATUS " LIBHWLOC_API_VERSION = ${LIBHWLOC_API_VERSION}")
53-
if(WINDOWS)
54-
message(STATUS " LIBHWLOC_DLL_DIRS = ${LIBHWLOC_DLL_DIRS}")
55-
endif()
5659

5760
if(LIBHWLOC_FIND_VERSION)
5861
if(NOT LIBHWLOC_API_VERSION)
62+
print_hwloc_dirs()
5963
message(FATAL_ERROR "Failed to retrieve libhwloc version")
6064
elseif(NOT LIBHWLOC_API_VERSION VERSION_GREATER_EQUAL
6165
LIBHWLOC_FIND_VERSION)
66+
print_hwloc_dirs()
6267
message(
6368
FATAL_ERROR
6469
" Required version: ${LIBHWLOC_FIND_VERSION}, found ${LIBHWLOC_API_VERSION}"

0 commit comments

Comments
 (0)