[CMake] post-install script

Michael Wild themiwi at gmail.com
Sun May 24 06:23:30 EDT 2009


No, this won't work. It is not an .app bundle I'm installing, it's  
stand-alone frameworks. Perhaps I'll have to go with the absolute  
paths until the mentioned bug-fix is in the mainstream distros. I  
don't like the DYLD_FRAMEWORK_PATH finding anyways (the same reasons  
for which CMake uses RPATH...).


Michael


On 23. May, 2009, at 16:05, Mike Jackson wrote:

> Did you try the normal CMake-OSX dylib fix up macro 'fixup_bundle()'.
> This will take care of copying in all the non-system dependent
> libraries/frameworks and adjusting their "install_name" for you
> resulting in a stand alone .app package.
>
> If you need help (it is not obvious how to use it) let me know. I have
> lots of examples on how to use it.
>
> Mike Jackson
>
> On Sat, May 23, 2009 at 8:16 AM, Michael Wild <themiwi at gmail.com>  
> wrote:
>> Thanks David
>>
>> yes, I already did try that (it's the obvious thing to try...).
>> Unfortunately the script runs before any of the files get installed.
>>
>> Actually, I need to work around this bug:
>> http://www.vtk.org/Bug/view.php?id=9054 by setting setting  
>> INSTALL_NAME_DIR
>> of the Mac OS X frameworks to ____remove_this_string____. A script  
>> should
>> then use install_name_tool to fix up things as a post-install step.
>>
>> Michael
>>
>>
>> On 23. May, 2009, at 13:22, David Cole wrote:
>>
>>> Put your install( CODE ... ) at the very bottom of the top level
>>> CMakeLists.txt file. Then it should run last after all other install
>>> steps.
>>> Did you already try that and there was a problem with it?
>>>
>>>
>>> On Sat, May 23, 2009 at 3:12 AM, Michael Wild <themiwi at gmail.com>  
>>> wrote:
>>>
>>>> On 21. May, 2009, at 10:14, Michael Wild wrote:
>>>>
>>>> Hi all
>>>>>
>>>>> I need to run a install( CODE ... ) script as a post-install  
>>>>> step after
>>>>> everything else has been installed. How do I enforce that?
>>>>>
>>>>> Thanks for any help.
>>>>>
>>>>> Michael
>>>>>
>>>>
>>>> Nobody got any ideas?
>>>>
>>>>
>> _______________________________________________
>> 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