CMake: Fix WinSparkle discovery.
g46b3753d53 changed "ws_find_package(WINSPARKLE ..." to "ws_find_package(WinSparkle ..." in CMakeLists.txt in order to fix an issue with case-sensitive folders. This exposed a different issue in FindWinSparkle.cmake, where we were passing "WINSPARKLE" to find_package_handle_standard_args. When successful this would set WINSPARKLE_FOUND, which would in turn *not* match WinSparkle_FOUND in ws_find_package, which means that we wouldn't enable automatic updates. Pass "WinSparkle" to find_package_handle_standard_args instead. Using a mixed-case package name results in setting both PackageName_FOUND and PACKAGENAME_FOUND, which fixes our various checks. Bug: 16381 Change-Id: I46ef98194dc060ad37d9a30bff4d9e905713759e Reviewed-on: https://code.wireshark.org/review/36079 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
74c2bcbe9b
commit
acaba5ee7e
|
@ -30,7 +30,7 @@ FIND_LIBRARY(WINSPARKLE_LIBRARY NAMES WinSparkle HINTS "${WINSPARKLE_HINTS}/${_R
|
|||
# handle the QUIETLY and REQUIRED arguments and set WINSPARKLE_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WINSPARKLE DEFAULT_MSG WINSPARKLE_LIBRARY WINSPARKLE_INCLUDE_DIR)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WinSparkle DEFAULT_MSG WINSPARKLE_LIBRARY WINSPARKLE_INCLUDE_DIR)
|
||||
|
||||
IF(WINSPARKLE_FOUND)
|
||||
SET(WINSPARKLE_LIBRARIES ${WINSPARKLE_LIBRARY} )
|
||||
|
|
Loading…
Reference in New Issue