Fix error messages in various cmake functions
This commit is contained in:
parent
32e1044c51
commit
a20e3a1349
3 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ function(target_compile_options_if_exists target_name)
|
||||||
elseif ("${writing_now}" STREQUAL "INTERFACE")
|
elseif ("${writing_now}" STREQUAL "INTERFACE")
|
||||||
list(APPEND interface_options ${entry})
|
list(APPEND interface_options ${entry})
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unknown frameworks scope for target ${target_name}")
|
message(FATAL_ERROR "Unknown options scope for target ${target_name}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ function(target_link_options_if_exists target_name)
|
||||||
elseif ("${writing_now}" STREQUAL "INTERFACE")
|
elseif ("${writing_now}" STREQUAL "INTERFACE")
|
||||||
list(APPEND interface_options ${entry})
|
list(APPEND interface_options ${entry})
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unknown frameworks scope for target ${target_name}")
|
message(FATAL_ERROR "Unknown options scope for target ${target_name}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ function(target_link_static_libraries target_name)
|
||||||
elseif ("${writing_now}" STREQUAL "INTERFACE")
|
elseif ("${writing_now}" STREQUAL "INTERFACE")
|
||||||
list(APPEND interface_libs ${link_option})
|
list(APPEND interface_libs ${link_option})
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unknown frameworks scope for target ${target_name}")
|
message(FATAL_ERROR "Unknown libraries scope for target ${target_name}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue