For the time being we are not prepared to encounter an undefined target
at this point of the configure process. Thus simply emit a fatal error
instead of a warning.
if(TARGET ${_lib})
list(APPEND _source_targets ${_lib})
else()
- # Warn loudly if we encounter an undefined target:
+ #
+ # Complain loudly if we encounter an undefined target:
+ #
if("${_lib}" MATCHES "::")
- message(WARNING
+ message(FATAL_ERROR
"Undefined imported target name »${_lib}« present in interface "
- "of target »${_entry}«"
+ "of target »${_entry}«."
)
endif()
list(APPEND _libraries ${_lib})
)
if(NOT "${_libraries}" STREQUAL "")
foreach(_lib ${_libraries})
- # Warn loudly if we encounter an undefined target:
+ #
+ # Complain loudly if we encounter an undefined target:
+ #
if("${_lib}" MATCHES "::")
- message(WARNING
+ message(FATAL_ERROR
"Undefined imported target name »${_lib}« present when defining "
"interface target »${_interface_target}«"
)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams