mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 11:11:38 +08:00
463775e913
In current implementation, it returns only SZIP_static_FOUND or SZIP_shared_FOUND. szip-config.cmake calls check_required_components(SZIP) helper, but it just set SZIP_FOUND=FALSE when it does not find required componets, but never set SZIP_FOUND=TRUE. szip-config.cmake should set SZIP_FOUND=TRUE when it find some components before calling the helper function. Signed-off-by: Hiroshi Miura <miurahr@linux.com>
12 lines
614 B
Diff
12 lines
614 B
Diff
diff -urN szip-2.1.1-a/config/cmake/szip-config.cmake.in szip-2.1.1-b/config/cmake/szip-config.cmake.in
|
|
--- szip-2.1.1-a/config/cmake/szip-config.cmake.in 2018-02-10 11:06:46.890685077 +0900
|
|
+++ szip-2.1.1-b/config/cmake/szip-config.cmake.in 2018-02-10 11:11:25.369274127 +0900
|
|
@@ -51,6 +51,7 @@
|
|
set (${SZIP_PACKAGE_NAME}_${comp}_FOUND 0)
|
|
else ()
|
|
set (${SZIP_PACKAGE_NAME}_${comp}_FOUND 1)
|
|
+ set (${SZIP_PACKAGE_NAME}_FOUND 1)
|
|
string(TOUPPER ${SZIP_PACKAGE_NAME}_${comp}_LIBRARY COMP_LIBRARY)
|
|
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} @SZIP_LIB_CORENAME@-${comp})
|
|
endif ()
|