From a20e3a134927db5194564059ebce46a1f733c32a Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 31 May 2023 03:55:18 +0400 Subject: [PATCH] Fix error messages in various cmake functions --- target_compile_options_if_exists.cmake | 2 +- target_link_options_if_exists.cmake | 2 +- target_link_static_libraries.cmake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target_compile_options_if_exists.cmake b/target_compile_options_if_exists.cmake index 4b24ed0..f0b2c07 100644 --- a/target_compile_options_if_exists.cmake +++ b/target_compile_options_if_exists.cmake @@ -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() diff --git a/target_link_options_if_exists.cmake b/target_link_options_if_exists.cmake index ebfad30..acf9112 100644 --- a/target_link_options_if_exists.cmake +++ b/target_link_options_if_exists.cmake @@ -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() diff --git a/target_link_static_libraries.cmake b/target_link_static_libraries.cmake index d52912b..f011f02 100644 --- a/target_link_static_libraries.cmake +++ b/target_link_static_libraries.cmake @@ -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()