[cmake-developers] [PATCH] Proposed fix for bug 15183

Gregor Jasny gjasny at googlemail.com
Sat Jan 30 17:30:59 EST 2016


Hello,

On 13/01/16 12:13, Marko Kylmämaa wrote:
> I would like to propose the following fix for bug 15183 (
> https://cmake.org/Bug/view.php?id=15183)
> 
> For some reason the XcodeGenerator seemed to be setting the INSTALL_PATH
> variable regardless of if it was initialized or not (which is done only for
> shared libraries). This seems almost certainly undesirable so I've moved
> the code inside the shared library check.

Thank you for the patch. It improves the situation but does not fix it
completely. Nevertheless I will push it to -next as soon as unit test
are green locally.

The case where it does not work is the following:

> cmake_minimum_required(VERSION 3.4 FATAL_ERROR)
> 
> add_library(mystatic STATIC main.c)
> add_library(myshared SHARED main.c)

The myshared library has "@rpath" in the install dir attribute. I guess
the MACOSX_RPATH target property interferes here. I will have a look at
this but certainly the second part of the fix will miss the CMake 3.5
freeze.

Thanks,
Gregor


More information about the cmake-developers mailing list