[cmake-developers] Rename suffix of Mac OS Framework
Brad King
brad.king at kitware.com
Mon Oct 5 11:31:04 EDT 2015
On 10/01/2015 04:07 AM, Roman Wüger wrote:
> set_target_properties(${PROJECT_NAME} PROPERTIES FRAMEWORK TRUE)
>
> Is there a way to rename the suffix ".framework"?
Not currently. It is hard-coded here:
https://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGeneratorTarget.cxx;hb=679a5d21#l2981
What is the use case for changing the framework extension?
Doing so breaks the basic layout defined in "man ld":
-framework name[,suffix]
This option tells the linker to search for `name.frame-
work/name' the framework search path. If the optional
suffix is specified the framework is first searched for
the name with the suffix and then without (e.g. look
for `name.framework/name_suffix' first, if not there
try `name.framework/name').
-Brad
More information about the cmake-developers
mailing list