mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 01:49:53 +00:00
Set default CPACK_PACKAGE_NAME to libsndfile
This commit is contained in:
parent
ec8f843fa1
commit
fe493272d2
1
.github/workflows/action.yml
vendored
1
.github/workflows/action.yml
vendored
@ -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
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user