diff --git a/CMakeLists.txt b/CMakeLists.txt index deeb6f6a99..5d10e2b15b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -496,6 +496,8 @@ ENDIF() # packaging information SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ryzom Core MMORPG Framework") SET(CPACK_PACKAGE_VENDOR "Ryzom Core") +string(TOLOWER ${CMAKE_PROJECT_NAME} PROJECT_NAME_LOWER) +SET(CPACK_PACKAGE_NAME ${PROJECT_NAME_LOWER} CACHE STRING "") SET(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README.md) SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING) SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};NeL;ALL;/") @@ -515,8 +517,8 @@ SET(CPACK_NSIS_CONTACT "matt.raykowski@gmail.com") ## Source Packages # remove os part of file name -SET(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}") -SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}") +SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") +SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") IF(WIN32) #SET(CPACK_GENERATOR "NSIS") SET(CPACK_GENERATOR "NSIS;ZIP") diff --git a/cmake/CMakePresets.nel.json b/cmake/CMakePresets.nel.json index 7f0b49e837..3fb8471d26 100644 --- a/cmake/CMakePresets.nel.json +++ b/cmake/CMakePresets.nel.json @@ -24,7 +24,8 @@ "WITH_STUDIO": false, "WITH_TOOLS": false, "WITH_QT5": true, - "WITH_LIBGSF": true + "WITH_LIBGSF": true, + "CPACK_PACKAGE_NAME": "nel" } }, { diff --git a/snowballs2/CMakePresets.json b/snowballs2/CMakePresets.json index 39a7511ba1..e48b11a462 100644 --- a/snowballs2/CMakePresets.json +++ b/snowballs2/CMakePresets.json @@ -19,6 +19,7 @@ "WITH_STUDIO": false, "WITH_TOOLS": false, "WITH_QT5": true, + "CPACK_PACKAGE_NAME": "snowballs", "CMAKE_PREFIX_PATH": "${sourceDir}/build/install" } },