aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-11-03 14:17:10 +0100
committerPierre Ossman <ossman@cendio.se>2014-11-03 14:17:10 +0100
commit818550b54dd9e32ff8fdb7d90c86c79626985354 (patch)
tree9f5e5fe1e19633b77827976fd012da835255fb32 /cmake/Modules
parentd94e3f2d3c28560bf306e903f848dc416488d3dc (diff)
downloadtigervnc-818550b54dd9e32ff8fdb7d90c86c79626985354.tar.gz
tigervnc-818550b54dd9e32ff8fdb7d90c86c79626985354.zip
The output variable from find_library() needs to be cleared
Otherwise you'll just get the initial response back every time you call it.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/CMakeMacroLibtoolFile.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake
index b3b4a9bb..a265789e 100644
--- a/cmake/Modules/CMakeMacroLibtoolFile.cmake
+++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake
@@ -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()