Browse Source

The output variable from find_library() needs to be cleared

Otherwise you'll just get the initial response back every time
you call it.
tags/v1.3.90
Pierre Ossman 9 years ago
parent
commit
818550b54d
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      cmake/Modules/CMakeMacroLibtoolFile.cmake

+ 4
- 0
cmake/Modules/CMakeMacroLibtoolFile.cmake View 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()

Loading…
Cancel
Save