Re: [CMake] Setting XCode Runtime Search Path

2013-02-20 Thread Darrell Blake
Hmm. I've just tried this but it didn't work for me. The Runpath Search Path field is still blank. Do I have to do things in a particular order to get it to work? Though I have tried moving it around and still couldn't get it to work. Darrell On 20 February 2013 00:17, Alexey Petruchik

Re: [CMake] Setting XCode Runtime Search Path

2013-02-20 Thread Andreas Stahl
Hello Darrell, you can also set it as a property per target set_target_properties(MyExecutable PROPERTIES XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS @loader_path;@loader_path/../lib ) This should work, but I think CMake could use some facilities to handle the executables runpath search

Re: [CMake] Setting XCode Runtime Search Path

2013-02-20 Thread Darrell Blake
I think I've just answered my own question. It looks like it has to be in the root CMakeLists.txt. If I put it in one included from add_subdirectory() it doesn't work but in the root CMakeLists.txt it does. On 20 February 2013 10:39, Darrell Blake darrell.bl...@gmail.com wrote: Hmm. I've just

Re: [CMake] Setting XCode Runtime Search Path

2013-02-20 Thread Darrell Blake
Ah, cool. That's much better. Cheers. On 20 February 2013 10:54, Andreas Stahl andreas.st...@tu-dresden.dewrote: Hello Darrell, you can also set it as a property per target set_target_properties(MyExecutable PROPERTIES XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS

[CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Darrell Blake
Is there any way to set the XCode Runtime Search Path linker setting? I've got a framework that was built using @rpath so I'm having to set the Runtime Search Path setting to @executable_path/../Frameworks so it can be found. I just wondered if there was any way to set it from CMake. Darrell --

Re: [CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Nick Overdijk
Dakon, Don't know his real name, sorry, wrote something for this, you can get it here: git://anongit.kde.org/scratch/dakon/cmake-cxx11 On 2013-20-02, at 01:17:28 , Alexey Petruchik wrote: Hi, I'm doing this by adding: set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS