cmake: use STATUS in all of our messages

This commit is contained in:
Matula Peter 2020-08-13 15:49:07 +02:00
parent 6f9f518ed1
commit af6eabbe97
4 changed files with 9 additions and 9 deletions

View File

@ -12,8 +12,8 @@ string(REPLACE
) )
if("${new_content}" STREQUAL "${content}") if("${new_content}" STREQUAL "${content}")
message("-- Patching: ${full_path} skipped") message(STATUS "-- Patching: ${full_path} skipped")
else() else()
message("-- Patching: ${full_path} patched") message(STATUS "-- Patching: ${full_path} patched")
file(WRITE "${full_path}" "${new_content}") file(WRITE "${full_path}" "${new_content}")
endif() endif()

View File

@ -118,9 +118,9 @@ function(patch_vcxproj file)
endif() endif()
if("${new_content}" STREQUAL "${content}") if("${new_content}" STREQUAL "${content}")
message("-- Patching: ${file} skipped") message(STATUS "-- Patching: ${file} skipped")
else() else()
message("-- Patching: ${file} patched") message(STATUS "-- Patching: ${file} patched")
file(WRITE "${file}" "${new_content}") file(WRITE "${file}" "${new_content}")
endif() endif()
endfunction() endfunction()
@ -141,9 +141,9 @@ function(patch_dotnet file)
) )
if("${new_content}" STREQUAL "${content}") if("${new_content}" STREQUAL "${content}")
message("-- Patching: ${file} skipped") message(STATUS "-- Patching: ${file} skipped")
else() else()
message("-- Patching: ${file} patched") message(STATUS "-- Patching: ${file} patched")
file(WRITE "${file}" "${new_content}") file(WRITE "${file}" "${new_content}")
endif() endif()
endfunction() endfunction()

View File

@ -3,4 +3,4 @@ file(READ
DOXYGEN_LOG_CONTENT DOXYGEN_LOG_CONTENT
) )
message("${DOXYGEN_LOG_CONTENT}") message(STATUS "${DOXYGEN_LOG_CONTENT}")

View File

@ -31,13 +31,13 @@ target_include_directories(utils
# We may need to link filesystem library manually. # We may need to link filesystem library manually.
find_library(STD_CPP_FS stdc++fs) find_library(STD_CPP_FS stdc++fs)
if (STD_CPP_FS) if (STD_CPP_FS)
message("-- Linking with ${STD_CPP_FS} library") message(STATUS "-- Linking with ${STD_CPP_FS} library")
target_link_libraries(utils target_link_libraries(utils
PRIVATE PRIVATE
stdc++fs stdc++fs
) )
else() else()
message("-- Library stdc++fs NOT FOUND -> linking utils without stdc++fs library") message(STATUS "-- Library stdc++fs NOT FOUND -> linking utils without stdc++fs library")
endif() endif()
# Disable the min() and max() macros to prevent errors when using e.g. # Disable the min() and max() macros to prevent errors when using e.g.