Fix CMake error messages

This commit is contained in:
Chris Thrasher 2022-08-04 22:29:08 -06:00 committed by Lukas Dürrenberger
parent 78d99fe828
commit 1dcaa9a396

View File

@ -359,7 +359,7 @@ function(sfml_add_external)
cmake_parse_arguments(THIS "" "" "INCLUDE;LINK" ${ARGN}) cmake_parse_arguments(THIS "" "" "INCLUDE;LINK" ${ARGN})
if (THIS_UNPARSED_ARGUMENTS) 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() endif()
add_library(${target} INTERFACE) add_library(${target} INTERFACE)
@ -400,7 +400,7 @@ function(sfml_find_package)
cmake_parse_arguments(THIS "" "" "INCLUDE;LINK" ${ARGN}) cmake_parse_arguments(THIS "" "" "INCLUDE;LINK" ${ARGN})
if (THIS_UNPARSED_ARGUMENTS) 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() endif()
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/") set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")