In CMake, using CPack I want CPACK_PACKAGE_FILE_NAME to include -debug suffix in case the package is produced from Debug configuration. For single-configuration CMake generators this is probably doable by checking CMAKE_BUILD_TYPE, but this does not work for multi-configuration generators like Visual Studio.