Skip to content

Commit

Permalink
cmake updated FATAL_ERROR message
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 22, 2024
1 parent 072d049 commit 750d8dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmake/CommonModules/TinyCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function(tiny_common target)
cmake_parse_arguments(PARSE_ARGV 1 TINY "${options}" "${oneValueArgs}" "")

if(DEFINED TINY_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: \
message(FATAL_ERROR "The ${CMAKE_CURRENT_FUNCTION}() was passed extra arguments: \
${TINY_UNPARSED_ARGUMENTS}")
endif()

Expand Down
6 changes: 3 additions & 3 deletions cmake/CommonModules/TinyHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function(target_optional_compile_definitions target scope)
)

if(DEFINED TINY_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: \
message(FATAL_ERROR "The ${CMAKE_CURRENT_FUNCTION}() was passed extra arguments: \
${TINY_UNPARSED_ARGUMENTS}")
endif()

Expand Down Expand Up @@ -181,7 +181,7 @@ function(tiny_read_version out_version out_major out_minor out_patch out_tweak)
cmake_parse_arguments(PARSE_ARGV 5 TINY "" "${oneValueArgs}" "")

if(DEFINED TINY_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: \
message(FATAL_ERROR "The ${CMAKE_CURRENT_FUNCTION}() was passed extra arguments: \
${TINY_UNPARSED_ARGUMENTS}")
endif()

Expand Down Expand Up @@ -600,7 +600,7 @@ function(tiny_set_compatible_interface_string target)
cmake_parse_arguments(PARSE_ARGV 1 TINY "" "" "${multiValueArgs}")

if(DEFINED TINY_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: \
message(FATAL_ERROR "The ${CMAKE_CURRENT_FUNCTION}() was passed extra arguments: \
${TINY_UNPARSED_ARGUMENTS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion cmake/CommonModules/TinyResourceAndManifest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function(tiny_resource_and_manifest target)
cmake_parse_arguments(PARSE_ARGV 1 TINY ${options} "${oneValueArgs}" "")

if(DEFINED TINY_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: \
message(FATAL_ERROR "The ${CMAKE_CURRENT_FUNCTION}() was passed extra arguments: \
${TINY_UNPARSED_ARGUMENTS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion cmake/CommonModules/TinyToolchainRequirement.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function(tiny_toolchain_requirement)
cmake_parse_arguments(PARSE_ARGV 0 TINY "" "${oneValueArgs}" "")

if(DEFINED TINY_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: \
message(FATAL_ERROR "The ${CMAKE_CURRENT_FUNCTION}() was passed extra arguments: \
${TINY_UNPARSED_ARGUMENTS}")
endif()

Expand Down

0 comments on commit 750d8dd

Please sign in to comment.