[CMake] Recommandation for macOS framework install rules

Sean McBride sean at rogue-research.com
Mon Jan 22 11:33:59 EST 2018


On macOS, the most usual thing is for your code to be self-contained in your .app bundle.  Perhaps if you described more what kind of thing you are building and why you don't want to do the usual thing, people will have more advice...


On Fri, 19 Jan 2018 19:44:03 +0100, Lucas Soltic said:

>Hello,
>Should I conclude that there are no recommendations?
>
>Best regards,
>Lucas
>
>> Le 17 janv. 2018 à 23:49, Lucas Soltic <lucas.soltic at orange.fr> a écrit :
>> 
>> Hello,
>> 
>> By default library install() command uses CMAKE_INSTALL_PREFIX (/usr/
>local by default) as a base for relative install paths. But when you
>define install rules for macOS frameworks, it doesn't make much sense to
>install them there. I'd rather expect something like /Library/Frameworks.
>> 
>> On the other side, if you have more things to install like a "readme"
>or documentation that should go into /usr/local/share, it doesn't make
>sense to have them installed in /Library/Frameworks. So you can't just
>change CMAKE_INSTALL_PREFIX to be /Library/Frameworks.
>> 
>> What do you recommend to keep installation rules simple (ie. remain
>relative) and yet support installation of both frameworks and other things?




More information about the CMake mailing list