diff --git a/cpack/CMakeLists.txt b/cpack/CMakeLists.txt index 87db15de..588e9187 100644 --- a/cpack/CMakeLists.txt +++ b/cpack/CMakeLists.txt @@ -1,7 +1,8 @@ # We only allow generating distribution packages if: # - it is a release build (to ensure all generated debian packages are fine to be distributed) # - tests are not built (because otherwise CPack would start installing googletest with the package as well) -if(CMAKE_BUILD_TYPE MATCHES Release AND NOT BUILD_TESTING) +string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILDTYPE) +if(BUILDTYPE MATCHES RELEASE AND NOT BUILD_TESTING) if("${CMAKE_VERSION}" VERSION_LESS "3.3") # Earlier cmake versions generate .deb packages for which the package manager says they're bad quality # and asks the user whether they really want to install it. Cmake 3.3 fixes this. @@ -37,7 +38,7 @@ if(CMAKE_BUILD_TYPE MATCHES Release AND NOT BUILD_TESTING) set(CPACK_PACKAGE_EXECUTABLES "cryfs" "CryFS") set(CPACK_DEBIAN_PACKAGE_SECTION "utils") set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) - set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "fuse") + set(CPACK_DEBIAN_PACKAGE_DEPENDS "fuse") set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://www.cryfs.org") set(CPACK_RPM_PACKAGE_LICENSE "LGPLv3")