Skip to content

Commit

Permalink
cmake added ${CMAKE_CURRENT_FUNCTION}
Browse files Browse the repository at this point in the history
Added to all message(FATAL_ERROR).
  • Loading branch information
silverqx committed Jul 22, 2024
1 parent a6fdb79 commit 072d049
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmake/CommonModules/TinyHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ ${TINY_UNPARSED_ARGUMENTS}")
string(REGEX MATCHALL "${regex}" match "${versionFileContent}")

if(NOT match)
message(FATAL_ERROR
"Could not detect project version number from ${versionHeader}")
message(FATAL_ERROR "Could not detect project version number \
from ${versionHeader} in ${CMAKE_CURRENT_FUNCTION}().")
endif()

message(DEBUG "Matched version string - ${match}")
Expand Down
2 changes: 1 addition & 1 deletion cmake/CommonModules/TinyToolchainRequirement.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function, in ${CMAKE_CURRENT_FUNCTION}()")

# This should never happen :/
if(NOT qtVersion MATCHES "${regexpVersion}")
message(FATAL_ERROR "Parsing of the 'qmake -query QT_VERSION' failed, \
message(FATAL_ERROR "Parsing of the 'qmake -query QT_VERSION' failed \
in ${CMAKE_CURRENT_FUNCTION}().")
endif()

Expand Down
2 changes: 1 addition & 1 deletion cmake/Modules/TinyDrivers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function(tiny_init_driver_types)
else()
message(FATAL_ERROR "Unsupported value '${DRIVERS_TYPE}' for \
the DRIVERS_TYPE CMake option for ${TinyDrivers_target} library, allowed values are \
Shared, Static, or Loadable (case-insensitive).")
Shared, Static, or Loadable (case-insensitive), in ${CMAKE_CURRENT_FUNCTION}().")
endif()

message(VERBOSE "Building ${TinyDrivers_target} ${driversTypeLower} library")
Expand Down

0 comments on commit 072d049

Please sign in to comment.