File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ endif(WITH_XERCES)
496496#
497497# Locate bz2
498498#
499-
499+ if ( NOT DEFINED WITH_BZIP2)
500500set (BZIP_INITIAL_VALUE)
501501find_package (BZ2 QUIET )
502502
@@ -507,6 +507,8 @@ else()
507507endif ()
508508
509509option (WITH_BZIP2 "Enable the use of bzip2 compression." ${BZIP_INITIAL_VALUE} )
510+ endif ()
511+
510512set (USE_BZ2 OFF )
511513if (WITH_BZIP2)
512514 find_package (BZ2 REQUIRED)
@@ -534,13 +536,15 @@ Separate multiple directories using semicolons." )
534536#
535537# Locate zlib
536538#
539+ if (NOT DEFINED WITH_ZLIB)
537540find_package (ZLIB QUIET )
538541set (ZLIB_INITIAL_VALUE ON )
539542if (NOT TARGET ZLIB::ZLIB)
540543set (ZLIB_INITIAL_VALUE OFF )
541544endif ()
542545
543546option (WITH_ZLIB "Enable the use of zip compression." ${ZLIB_INITIAL_VALUE} )
547+ endif ()
544548
545549set (USE_ZLIB OFF )
546550if (WITH_ZLIB)
You can’t perform that action at this time.
0 commit comments