Skip to content

Commit

Permalink
cmake: improve status messages in SilKit/source/
Browse files Browse the repository at this point in the history
When building SIL Kit from source from our distributed (zip) packages,
we inform the user that he is currently not building from our git repo.
Previously this was a WARNING, which confused users, so we changed it to
a STATUS message.

Issues: SILKIT-929

Signed-off-by:  Jan Kraemer <[email protected]>
Co-authored-by: Daniel Edwards <[email protected]>
  • Loading branch information
VJanKraemer and VDanielEdwards committed Jun 14, 2024
1 parent 398e413 commit 7e86d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SilKit/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ set(GIT_DIR "${PROJECT_SOURCE_DIR}/../.git")
set(GIT_HEAD_FILE "${GIT_DIR}/HEAD")
set(VERSION_MACROS_HPP ${CMAKE_CURRENT_BINARY_DIR}/version_macros.hpp)
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/version_macros.hpp)
message(STATUS "SILKIT re-using deployed version_macros.hpp")
message(STATUS "SILKIT: using deployed version_macros.hpp")
set(VERSION_MACROS_HPP ${CMAKE_CURRENT_LIST_DIR}/version_macros.hpp)
elseif(EXISTS "${GIT_HEAD_FILE}")
configure_file(
Expand All @@ -58,7 +58,7 @@ elseif(EXISTS "${GIT_HEAD_FILE}")
)
endif()
else()
message(WARNING "Cannot determine hash of current git head!")
message(STATUS "SILKIT: Cannot determine hash of current git head! GIT_HEAD_HASH will be set to UNKNOWN")
set(GIT_HEAD_HASH "UNKNOWN")
configure_file(
version_macros.hpp.in
Expand Down

0 comments on commit 7e86d62

Please sign in to comment.