Set default CPACK_PACKAGE_NAME to libsndfile

This commit is contained in:
evpobr 2020-09-24 09:26:40 +05:00 committed by Erik de Castro Lopo
parent ec8f843fa1
commit fe493272d2
2 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,6 @@ jobs:
-DBUILD_REGTEST=OFF
-DBUILD_EXAMPLES=OFF
-DINSTALL_PKGCONFIG_MODULE=OFF
-DCPACK_PACKAGE_NAME=libsndfile
-DCMAKE_BUILD_TYPE=Release
-DVCPKG_TARGET_TRIPLET=x64-windows-static
-DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake

View File

@ -19,6 +19,9 @@ set (CMAKE_C_STANDARD_REQUIRED TRUE)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set (PACKAGE_NAME lib${PROJECT_NAME})
if (NOT DEFINED CPACK_PACKAGE_NAME)
set (CPACK_PACKAGE_NAME ${PACKAGE_NAME})
endif ()
set (CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set (CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set (CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})