From: Pierre Ossman Date: Wed, 16 Nov 2022 06:58:55 +0000 (+0100) Subject: Bail on missing libraries X-Git-Tag: v1.13.90~96^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11ebff62d7ba49c72132dd5b731af70e3ddab75f;p=tigervnc.git Bail on missing libraries They may be crucial, so refuse to continue if this happens. --- 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)