[CMake] CPack doesn't recognize custom templates

NoRulez norulez at me.com
Wed May 9 13:34:28 EDT 2012


Hello Eric,

I've found the problem, it was my mistake. A few lines later i overwrote the CPACK_MODULE_PATH setting. [RESOLVED]

But what I didn't understand was the fact that it would work on Windows 7 with the same settings.

So, my custom CPackConfig.cmake.in and my NSIS.template.in seems to work, but CPack reports that there are not files (*.* under _CPack_Packages\win32\NSIS\MyProject)
I have install statements for the executable and also for the shared libraries. What could be the problem?
Do I need a special setting in CPackConfig.cmake.in or in NSIS.tempalte.in to copy the files into the _CPack_Packages subfolder?

Thank you for your help

Best Regards

Am 08.05.2012 um 15:19 schrieb norulez at me.com:

> It is only a copy from the original. It doesn't work in windows xp in general.
>
> Best Regards
>
> Am 08.05.2012 um 13:51 schrieb Eric Noulard <eric.noulard at gmail.com>:
>
>> 2012/5/8 <norulez at me.com>:
>>> There is no difference with your command. It still uses the NSIS.template.in file from the CMake installation.
>>
>> Are there any difference between the 2 CPackConfig.cmake files ?
>> WinXP failing case vs Win7 working case?
>>
>> Does the ${CMAKE_SOURCE_DIR}/cmake/NSIS.template.in file has any weird
>> attribute?
>> Is it readable by "normal user"? (you said it works if you are admin right?)
>>
>>> Yes I tried the configurations in new build directories such as build1 ... buildn.
>>
>> I got that but I suspected something in the source tree (where your
>> NSIS.template.in is)
>> so starting from another source tree (taken from your VCS) may exhibit
>> different behavior.
>>
>> If all that fail I'm afraid I cannot help more unless you can build a
>> minimalistic example
>> which shows the wrong behavior.
>>
>> (I have no WinXP at hand but then I may look into the source more thoroughly).
>>
>> --
>> Erk
>> Le gouvernement représentatif n'est pas la démocratie --
>> http://www.le-message.org
> --
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120509/88ac8ba1/attachment.htm>


More information about the CMake mailing list