From 1dcaa9a396ae2a3c4a802d97c39e3d38fa8c1eaf Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 4 Aug 2022 22:29:08 -0600 Subject: [PATCH] Fix CMake error messages --- cmake/Macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 0c2caacb..cd864039 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -359,7 +359,7 @@ function(sfml_add_external) cmake_parse_arguments(THIS "" "" "INCLUDE;LINK" ${ARGN}) if (THIS_UNPARSED_ARGUMENTS) - message(FATAL_ERROR "Unknown arguments when calling sfml_import_library: ${THIS_UNPARSED_ARGUMENTS}") + message(FATAL_ERROR "Unknown arguments when calling sfml_add_external: ${THIS_UNPARSED_ARGUMENTS}") endif() add_library(${target} INTERFACE) @@ -400,7 +400,7 @@ function(sfml_find_package) cmake_parse_arguments(THIS "" "" "INCLUDE;LINK" ${ARGN}) if (THIS_UNPARSED_ARGUMENTS) - message(FATAL_ERROR "Unknown arguments when calling sfml_import_library: ${THIS_UNPARSED_ARGUMENTS}") + message(FATAL_ERROR "Unknown arguments when calling sfml_find_package: ${THIS_UNPARSED_ARGUMENTS}") endif() set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")