CMake help


Ciaran <ciaran...@...>
 

Sorry, cmake is brand new to me and I figured it would be quicker to ask...

What would be the proper way to tell cmake to build the nuke plugins linking to the versions of libraries (libstdc++ etc) in the nuke install rather than the system ones?


Jeremy Selan <jeremy...@...>
 

Was hoping someone else would field this question...

Have you been able to figure it out yet? What platform are you on?
I'm not much of a cmake expert, unfortunately.

Are you familiar with readelf -a ? Check out runpath and rpath, and
if the nuke libs dir is being compiled in or not.

I also know that cmake variables that affect the rpath are:
INSTALL_RPATH_USE_LINK_PATH
along with
CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES

(where the all directories
listed in CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES will be removed
from the install RPATH)

-- Jeremy


Ciaran <ciaran...@...>
 

I used the LD_PRELOAD hack to get around it - actually this is just a manifestation of the more general nuke plugins linking to other libraries linking issue and I'm not sure changing the rpath is the correct solution anyway...


Jeremy Selan <jeremy...@...>
 

Good to know, thanks!

-- Jeremy

On Fri, Oct 14, 2011 at 5:06 PM, Ciaran <ciaran...@...> wrote:
I used the LD_PRELOAD hack to get around it - actually this is just a
manifestation of the more general nuke plugins linking to other libraries
linking issue and I'm not sure changing the rpath is the correct solution
anyway...