]> source.dussan.org Git - tigervnc.git/commitdiff
The output variable from find_library() needs to be cleared
authorPierre Ossman <ossman@cendio.se>
Mon, 3 Nov 2014 13:17:10 +0000 (14:17 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 3 Nov 2014 13:17:10 +0000 (14:17 +0100)
Otherwise you'll just get the initial response back every time
you call it.

cmake/Modules/CMakeMacroLibtoolFile.cmake

index b3b4a9bb1fb0b879ff305136ede766340ec94394..a265789ea3c1abd362661f0d0d51bab34f451687 100644 (file)
@@ -45,6 +45,8 @@ macro(libtool_create_control_file _target)
           else()
             # No shared library found, so ignore target.
           endif()
+          # Need to clear FL to get new results next loop
+          unset(FL CACHE)
         else()
           # Target is a CMake target, so ignore if (CMake targets are static
           # libs in TigerVNC.)
@@ -69,6 +71,8 @@ macro(libtool_create_control_file _target)
         else()
           # No absolute pathname found.  Ignore it.
         endif()
+        # Need to clear FL to get new results next loop
+        unset(FL CACHE)
       endif()
     endif()
   endforeach()