Fix CMake error messages
This commit is contained in:
parent
78d99fe828
commit
1dcaa9a396
@ -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/")
|
||||||
|
Loading…
Reference in New Issue
Block a user