[CMake] CPack doesn't recognize custom templates

David Cole david.cole at kitware.com
Wed May 9 13:39:35 EDT 2012


What do your install commands look like?

You're not trying to install files into absolute paths on Windows, are
you? (i.e. -- all things should be installed underneath
CMAKE_INSTALL_PREFIX in a normal 'make install' tree in order to work
well on Windows with the NSIS generator.)



On Wed, May 9, 2012 at 1:34 PM, NoRulez <norulez at me.com> wrote:
> 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
>
> --
>
> 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


More information about the CMake mailing list