1
0
Fork 0

Fix error messages in various cmake functions

This commit is contained in:
Ilya Fedin 2023-05-31 03:55:18 +04:00 committed by John Preston
parent 32e1044c51
commit a20e3a1349
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ function(target_compile_options_if_exists target_name)
elseif ("${writing_now}" STREQUAL "INTERFACE")
list(APPEND interface_options ${entry})
else()
message(FATAL_ERROR "Unknown frameworks scope for target ${target_name}")
message(FATAL_ERROR "Unknown options scope for target ${target_name}")
endif()
endif()
endif()

View file

@ -28,7 +28,7 @@ function(target_link_options_if_exists target_name)
elseif ("${writing_now}" STREQUAL "INTERFACE")
list(APPEND interface_options ${entry})
else()
message(FATAL_ERROR "Unknown frameworks scope for target ${target_name}")
message(FATAL_ERROR "Unknown options scope for target ${target_name}")
endif()
endif()
endif()

View file

@ -24,7 +24,7 @@ function(target_link_static_libraries target_name)
elseif ("${writing_now}" STREQUAL "INTERFACE")
list(APPEND interface_libs ${link_option})
else()
message(FATAL_ERROR "Unknown frameworks scope for target ${target_name}")
message(FATAL_ERROR "Unknown libraries scope for target ${target_name}")
endif()
endif()
endforeach()