[CMake] CPack doesn't recognize custom templates

norulez at me.com norulez at me.com
Wed May 9 14:04:10 EDT 2012


>> Is it the case? Is there any file in _CPack_Packages\win32\NSIS\MyProject ?
No, there aren't any files

>> Could you copy/paste the exact message you get and may be running cpack on the command line with ---verbose and --debug.
Sure, but I can only do so tomorrow

>> Nope normally you don't but what are you doing in your "CPackConfig.cmake.in" ?
I only set the CPACK variables and additional variables which are used in the NSIS.template.in file.
Because if I don't use the custom CPackConfig.cmake.in file then the variables in the NSIS.template.in files aren't resolved.

>> And do you have any INSTALL(CODE or INSTALL(SCRIPTS in your project?
Yes, i use this for the BundleUtilities like in the BundleUtilities example

INSTALL(CODE "
    file(GLOB_RECURSE SHARED_LIBS
      \"\${CMAKE_INSTALL_PREFIX}/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
    include(BundleUtilities)
    fixup_bundle(\"${APPS}\" \"\${SHARED_LIBS}\" \"${DIRS}\")
    " COMPONENT Runtime)


Best Regards


Am 09. Mai 2012 um 10:55 schrieb Eric Noulard <eric.noulard at gmail.com>:

> 2012/5/9 <norulez at me.com>:
> [...]
>
> >
> > If I run the INSTALL target under VS then the files are correctly copied to
> > C:\Program Files\MyProject
> > But only the PACKAGE target under VS doesn't work, and I get the message
> > from the last email I sent.
>
> >> 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)
>
> Is it the case? Is there any file in
> _CPack_Packages\win32\NSIS\MyProject ?
>
> Could you copy/paste the exact message you get and may be
> running cpack on the command line with ---verbose and --debug.
>
>
> >> 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?
>
> Nope normally you don't but what are you doing in your "CPackConfig.cmake.in" ?
>
> And do you have any INSTALL(CODE or INSTALL(SCRIPTS in your project?
>
>
> -- 
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120509/fe36f682/attachment.htm>


More information about the CMake mailing list