]> source.dussan.org Git - tigervnc.git/commitdiff
Bail on missing libraries
authorPierre Ossman <ossman@cendio.se>
Wed, 16 Nov 2022 06:58:55 +0000 (07:58 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 10 Jan 2023 18:41:13 +0000 (19:41 +0100)
They may be crucial, so refuse to continue if this happens.

cmake/Modules/CMakeMacroLibtoolFile.cmake

index 1115c0d36507927400fc65d9486cdb6b0fa0e870..7395a3f191dd098a29287177dbff8ab0378b7f0e 100644 (file)
@@ -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)