[CMake] linking cmake targets to cpack targets

Eric Noulard eric.noulard at gmail.com
Sat Feb 28 04:08:23 EST 2009


2009/2/28 Aaron Turner <synfinatic at gmail.com>:
>
> So is there a clean way to pass the current Cmake config variables to
> a new cmake process via execute_process()?  Or do I need to create a
> template file and use configure_file() to do that?  Basically, your
> above example doesn't work for me because things like
> ${CPACK_SOURCE_PACKAGE_FILE_NAME} are undefined.

Sorry my example was incomplete (too fast writing).

You may "simply "

include(CPackSourceConfig.cmake)

it is in the PackageSnapshot.cmake I've attached previously.


-- 
Erk


More information about the CMake mailing list