diff options
| author | liuxueli <[email protected]> | 2020-04-07 17:52:06 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-04-07 17:52:06 +0800 |
| commit | 64f208f615d0a59eeae487fb9ae9445cf2b7cb1a (patch) | |
| tree | f73e71322ed6ff3461cf1052fc7fdcdc80850a62 | |
| parent | 910602d3f8297a7beef607e76e6703e06c3800dd (diff) | |
隐藏component的后缀
| -rw-r--r-- | cmake/Package.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Package.cmake b/cmake/Package.cmake index 92c344a..16133dc 100644 --- a/cmake/Package.cmake +++ b/cmake/Package.cmake @@ -37,6 +37,7 @@ if(ENABLE_DEVEL) set(CPACK_COMPONENT_HEADER_GROUP "devel") set(CPACK_COMPONENTS_ALL LIBRARY HEADER) else() + set(CPACK_RPM_MAIN_COMPONENT LIBRARY) set(CPACK_RPM_FILE_NAME "${MY_RPM_NAME_PREFIX}-${CPACK_PACKAGE_VERSION}-${SYSTEM_VERSION}.rpm") set(CPACK_RPM_LIBRARY_DEBUGINFO_FILE_NAME "${MY_RPM_NAME_PREFIX}-debuginfo-${CPACK_PACKAGE_VERSION}-${SYSTEM_VERSION}.rpm") |
