From 11ebff62d7ba49c72132dd5b731af70e3ddab75f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 16 Nov 2022 07:58:55 +0100 Subject: Bail on missing libraries They may be crucial, so refuse to continue if this happens. --- cmake/Modules/CMakeMacroLibtoolFile.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake') diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake index 1115c0d3..7395a3f1 100644 --- a/cmake/Modules/CMakeMacroLibtoolFile.cmake +++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake @@ -110,7 +110,7 @@ macro(libtool_create_control_file _target) set(_target_dependency_libs "${_target_dependency_libs} -L${_shared_lib_path} -l${_shared_lib}") endif() else() - # No library found, so ignore target. + message(FATAL_ERROR " - could not find library ${library}") endif() # Need to clear FL to get new results next loop unset(FL CACHE) @@ -133,7 +133,7 @@ macro(libtool_create_control_file _target) # Absolute pathname found. Add it. set(_target_dependency_libs "${_target_dependency_libs} ${FL}") else() - # No absolute pathname found. Ignore it. + message(FATAL_ERROR " - could not find library ${library}") endif() # Need to clear FL to get new results next loop unset(FL CACHE) -- cgit v1.2.3