CPack: Access to the -C variable
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
It's currently quite difficult to figure out the build directory in CPack with Visual Studio. It would be trivial, if the contents of the -C
argument would have this. And if no -C
argument is given, it should of course have the default.
Right now, you have to take the complete path to an existing target file and strip the filename to get the build directory.
If I could write something like this instead:
INSTALL(FILES ${CPACK_BUILD_DIR}/myoddfile DESTINATION...)
where ${CPACK_BUILD_DIR}
would be the normal build dir for the directory, modified for the -C
argument, if it's there, or otherwise have Release in it.