[CMake] post and pre processing for the Cpack target (package/package_source)
t m
cmake at majchrowski.co.uk
Thu Jul 9 15:18:41 EDT 2009
Hello CMake Experts,
Is there any way to define post or pre-processing actions for built-in
targets like package/package_source.
Those two are not visible in "CMakeLists.txt scope", so the
add_dependencies(package_source pre_package_source)
can not be used. What I found is the solution described here:
http://dingyichen.livejournal.com/8104.html. It based on
fact that you can wrapp a package target call by adding own target:
ADD_CUSTOM_TARGET(pack_src
COMMAND make package_source
COMMENT "Packaging Source files"
DEPENDS other_dependency
VERBATIM
)
I check it and is fine as far as you do not use -j option together
with make. Is there any other alternative ?, Thanks in advance.
regards, Tomek.
More information about the CMake
mailing list