On 24.04.2015 20:55, Gregor Jasny wrote:
Hello,
would it be possible to add generator expression support to CPack
so that I can use $<CONFIG> within CPACK_PACKAGE_FILE_NAME? I'm
using the CPack module from within my CMakeLists.txt.
I'm trying to generate unique file names per architecture and
configuration but multi config generators like Xcode make this
harder than expected.
Before digging into that topic I'd like to know if this would be
a dead end.
You should be able to do this without generator expressions and just
CPACK_PROJECT_CONFIG_FILE [1] and CPACK_BUILD_CONFIG [2].
If you really do require/want generator expressions you should be able
to combine that with file(GENERATE) and include().
Nils
[1]
http://www.cmake.org/cmake/help/v3.2/module/CPack.html#variable:CPACK_PROJECT_CONFIG_FILE
[2] Set by cpack to the configuration being packaged (e.g. Debug,
Release, ...)
[3] http://www.cmake.org/cmake/help/v3.2/command/file.html
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers