Hi I've got a question and/or suggestion regarding CPack: How are the generator specific settings supposed to be sent to the generators?
If I understand the CPack system correctly you're supposed (or at least you have the option) to write CPack settings in your CMakeLists.txt. This would be achieved by setting up your options with SET(CPACK_option "value") followed by a INCLUDE(CPack). CMake then checks what options are CPack-specific (starts with CPACK_) and places them in the file CPackConfig.cmake. But how about the generator specific options that don't start with CPACK? DEBIAN_PACKAGE_* for example. Wouldn't it be better to name all the options for CPack with the prefix CPACK (like CPACK_DEBIAN_PACKAGE_ARCHITECTURE or perhaps CPACK_DEB_ARCHITECTURE)? I did a quick modification the deb-generator so that it looked for variables named with the CPACK_DEBIAN_PACKAGE prefix instead and my settings were indeed transferred from CMakeLists.txt to the CPackConfig-file. I also did a small change to the CPackDeb.cmake file so that it defaults to setting the architecture to the current one using dpkg --print-architecture rather than simply always setting it to "i386" (Since I'm on AMD64 it mislabeled all my generated .deb-packages). If you agree you can have the patches, if you don't; please teach me how to do it (ie. selecting DEBIAN_PACKAGE_ARCHITECTURE) the proper way. ;) Regards Fredrik _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
