On 02/27/2012 05:51 PM, Eric Noulard wrote:
2012/2/27 John Drescher<dresche...@gmail.com>:
Ah yes you're right, last time I checked I didn't see them..
Anyway my extra_commands don't appear anywhere in the nsi file, is that
normal?
No i'ts not.
Did you set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS ...)
BEFORE
Actually I didn't.. Some time ago it was failing when including after,
so I moved all the includes on top.
I'll change it again tomorrow then..
include(CPack) ?
The process is relatively simple.
0) Your CPACK_xxx vars are set and processed by the inclusion
of CPack.cmake (the include(CPack) of your CMakeLists.txt)
1) CPack NSIS generator "configures" the NSIS.template.in
file by replacing occurences of CPACK_NSIS_... specific vars in there.
2) makensis is launched using the generated project.nsi
CPack private installation of your project in a _CPackPackage subdir
is done somewhere between 0) and 1).
You need awkward extra escape in CPACK_NSIS_xxx because of the double
CMake script processing 0) and 1).
Is it clearer?
Ok now is clear thanks
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake