Skip to content

Commit 49c3a2a

Browse files
cmake: cleanup cmake log messages
Signed-off-by: Bindea Cristian <[email protected]>
1 parent f4ca560 commit 49c3a2a

File tree

35 files changed

+34
-79
lines changed

35 files changed

+34
-79
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ find_library(
151151
/opt/local/lib64
152152
REQUIRED
153153
)
154-
message("IIO LIBRARIES: " ${IIO_LIBRARIES})
154+
message(STATUS "IIO LIBRARIES: " ${IIO_LIBRARIES})
155155

156156
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
157157
set(SCOPY_DLL_BUILD_PATH ${CMAKE_BINARY_DIR}/Scopy.app/Contents/Frameworks)

cmake/Modules/FindQwt.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if(QWT_INCLUDE_DIRS)
6161
if(NOT QWT_WRONG_VERSION)
6262
set(QWT_FOUND TRUE)
6363
else(NOT QWT_WRONG_VERSION)
64-
message(STATUS "QWT Version must be >= 5.2 and <= 6.2.0, Found ${QWT_VERSION}")
64+
message(NOTICE "QWT Version must be >= 5.2 and <= 6.2.0, Found ${QWT_VERSION}")
6565
endif(NOT QWT_WRONG_VERSION)
6666

6767
endif(QWT_INCLUDE_DIRS)

cmake/Modules/PackageUtils.cmake

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function(add_subdirectories_with_options base_dir output_dir prefix)
3434
endif()
3535

3636
if(${ENABLE_CHILD_VAR})
37-
message(STATUS "Including ${prefix}: ${child}")
37+
message(STATUS "${prefix}: ${child}")
3838

3939
# Set output directories based on platform
4040
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
@@ -46,10 +46,10 @@ function(add_subdirectories_with_options base_dir output_dir prefix)
4646
if(EXISTS "${base_dir}/${child}/CMakeLists.txt")
4747
add_subdirectory(${base_dir}/${child})
4848
else()
49-
message(STATUS "No CMakeLists.txt in subdirectory: ${base_dir}/${child}")
49+
message(NOTICE "No CMakeLists.txt in subdirectory: ${base_dir}/${child}")
5050
endif()
5151
else()
52-
message(STATUS "Skipping ${prefix}: ${child}")
52+
message(STATUS "Skipping: ${child}")
5353
endif()
5454
endif()
5555
endforeach()
@@ -83,19 +83,19 @@ endfunction()
8383

8484
function(include_emu_xml base_dir output_dir)
8585
if(IS_DIRECTORY ${base_dir})
86-
message("Found IIO Emulator XMLs in: " ${base_dir})
86+
message(STATUS "Found IIO Emulator XMLs in: " ${base_dir})
8787
file(GLOB EMU_FILES ${base_dir}/*)
8888
if(EMU_FILES)
8989
file(COPY ${EMU_FILES} DESTINATION ${output_dir})
9090
else()
91-
message("No emulator files found in: ${base_dir}")
91+
message(NOTICE "No emulator files found in: ${base_dir}")
9292
endif()
9393
endif()
9494
endfunction()
9595

9696
function(include_resources base_dir output_dir)
9797
if(NOT EXISTS ${base_dir})
98-
message(STATUS "Resources directory doesn't exist: ${base_dir}")
98+
message(NOTICE "Resources directory doesn't exist: ${base_dir}")
9999
return()
100100
endif()
101101
file(GLOB children RELATIVE ${base_dir} ${base_dir}/*)
@@ -139,7 +139,10 @@ function(install_plugins SRC_DIR INSTALL_DEST TARGET_PREFIX)
139139
PATTERN "resources.qrc.depends" EXCLUDE
140140
)
141141
else()
142-
message(STATUS "No resources to install (only resources.qrc.depends found).")
142+
message(
143+
NOTICE
144+
"No resources to install for: ${plugin} (only resources.qrc.depends found)."
145+
)
143146
endif()
144147
endif()
145148
endif()

cmake/Modules/ScopyAbout.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function(configure_about ABOUT_RESOURCES_DIR)
110110
set(BUILD_INFO ${BUILD_INFO}job_link:\ ${CI_JOB_LINK}\n)
111111

112112
if(EXISTS ${CMAKE_SOURCE_DIR}/build-status)
113-
message("build-status found in ${CMAKE_SOURCE_DIR}.. populating")
113+
message(STATUS "build-status found in ${CMAKE_SOURCE_DIR}.. populating")
114114
file(READ ${CMAKE_SOURCE_DIR}/build-status SCOPY_BUILD_STATUS_INFO)
115115
endif()
116116
else()
@@ -144,6 +144,6 @@ function(configure_about ABOUT_RESOURCES_DIR)
144144
endforeach()
145145

146146
configure_file(${ABOUT_RESOURCES_DIR}/aboutpage.qrc.cmakein ${ABOUT_RESOURCES_TARGET_DIR}/aboutpage.qrc @ONLY)
147-
message(STATUS "built about page in - " ${ABOUT_RESOURCES_TARGET_DIR}/aboutpage.qrc)
147+
message(STATUS "Built about page in - " ${ABOUT_RESOURCES_TARGET_DIR}/aboutpage.qrc)
148148

149149
endfunction()

cmake/Modules/ScopyMacOS.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ macro(set_macosx_package_location source_dir location extension)
7070
foreach(_file ${files})
7171
file(RELATIVE_PATH _relative_path ${source_dir} ${_file})
7272
get_filename_component(parent_directory ${_relative_path} DIRECTORY)
73-
message(parent_directory: ${parent_directory})
73+
message(STATUS "parent_directory: " ${parent_directory})
7474
set_property(SOURCE ${_file} PROPERTY MACOSX_PACKAGE_LOCATION ${location}/${parent_directory})
75-
message(location/parent_directory ${location}/${parent_directory})
75+
message(STATUS "location/parent_directory: " ${location}/${parent_directory})
7676
set(EXTRA_BUNDLE_FILES ${EXTRA_BUNDLE_FILES} ${_file})
7777
endforeach()
7878
endmacro()

cmake/Modules/ScopyStyle.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ function(
3939
if(NOT ret EQUAL "0")
4040
message(FATAL_ERROR "Failed to generate style files! error: ${ret}")
4141
else()
42-
message("-- Generated style files")
42+
message(STATUS "Generated style files")
4343
endif()
4444
endfunction()

cmake/Modules/ScopyTranslation.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function(generate_translations OUTPUT_LOC)
3030
)
3131
qt_add_translation(QM_FILES ${TS_FILES})
3232

33-
message("Translations QM: " ${QM_FILES})
3433
set(TRANSLATIONS)
3534
foreach(file ${TS_FILES})
3635
get_filename_component(file_name ${file} NAME_WE)

core/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if(${WITH_PYTHON})
8585
set(PYTHON_VERSION ${PYTHON_VERSION} PARENT_SCOPE)
8686
if(NOT Python3_FOUND)
8787
set(WITH_PYTHON OFF)
88-
message(STATUS "Python not found")
88+
message(NOTICE "Python not found")
8989
endif()
9090
set(BUILD_PYTHON_LIBRARY_DIRS ${Python3_LIBRARY_DIRS}/${PYTHON_VERSION})
9191
endif()
@@ -99,7 +99,7 @@ if(WITH_SIGROK)
9999
pkg_get_variable(LIBSIGROK_DECODERS_DIR libsigrokdecode decodersdir)
100100
if(NOT LIBSIGROK_DECODE_FOUND)
101101
set(WITH_SIGROK OFF)
102-
message(STATUS "Libsigrokdecode not found")
102+
message(NOTICE "Libsigrokdecode not found")
103103
endif()
104104
endif()
105105

gui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ find_package(KDDockWidgets QUIET)
113113
add_definitions(-DBOOST_ALL_DYN_LINK)
114114
find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED)
115115

116-
message(STATUS "Building " ${PROJECT_NAME})
116+
message(STATUS "Building: " ${PROJECT_NAME})
117117
add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCES} ${PROJECT_RESOURCES})
118118

119119
generate_export_header(

packages/ad936x/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ set(PACKAGE_NAME ${SCOPY_MODULE})
2727
set(PACKAGE_DISPLAY_NAME "AD936X")
2828
set(PACKAGE_DESCRIPTION "Plugin for AD936X")
2929

30-
message(STATUS "building package: " ${SCOPY_MODULE})
31-
3230
project(scopy-package-${SCOPY_MODULE} VERSION 0.1 LANGUAGES CXX)
3331

3432
configure_file(manifest.json.cmakein ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/MANIFEST.json @ONLY)
3533
include_emu_xml(${CMAKE_CURRENT_SOURCE_DIR}/emu-xml ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/emu-xml)
3634
include_resources(${CMAKE_CURRENT_SOURCE_DIR}/resources ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/resources)
37-
message("Including plugins")
35+
message(STATUS "Including plugins for ${SCOPY_MODULE}")
3836
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/plugins)
3937
add_plugins(${CMAKE_CURRENT_SOURCE_DIR}/plugins ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/plugins)
4038
install_plugins(

0 commit comments

Comments
 (0)