Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
--On Wednesday, June 29, 2011 9:43 PM +0200 Michael Wild wrote: As noted above, I tried both the variable names. In fact, I have now even stripped out the "APPLE" if: SET(INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") SET(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") I don't see ei

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Michael Wild
On 06/29/2011 09:33 PM, Quanah Gibson-Mount wrote: > --On Wednesday, June 29, 2011 9:27 PM +0200 Michael Wild > wrote: > >> On 06/29/2011 09:14 PM, Quanah Gibson-Mount wrote: >>> --On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild >>> wrote: >>> That's because on OS X you have to use t

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
--On Wednesday, June 29, 2011 9:27 PM +0200 Michael Wild wrote: On 06/29/2011 09:14 PM, Quanah Gibson-Mount wrote: --On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild wrote: That's because on OS X you have to use the INSTALL_NAME_DIR property (or alternatively, the CMAKE_INSTALL_NAME_

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Michael Wild
On 06/29/2011 09:14 PM, Quanah Gibson-Mount wrote: > --On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild > wrote: > >> That's because on OS X you have to use the INSTALL_NAME_DIR property (or >> alternatively, the CMAKE_INSTALL_NAME_DIR variable). > > I put: > > IF(APPLE) > SET(INSTALL_NA

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
--On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild wrote: That's because on OS X you have to use the INSTALL_NAME_DIR property (or alternatively, the CMAKE_INSTALL_NAME_DIR variable). I put: IF(APPLE) SET(INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") ENDIF() in CMakeLists.txt, and

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Michael Wild
On 06/29/2011 08:27 PM, Quanah Gibson-Mount wrote: > I've managed to get cmake to correctly build mysql on Linux OSes, but I > have a continued problem with mysql on OSX. Specifically, cmake does > not install the mysql libraries with the correct RUNPATH settings. > > For example, prior to instal

[CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
I've managed to get cmake to correctly build mysql on Linux OSes, but I have a continued problem with mysql on OSX. Specifically, cmake does not install the mysql libraries with the correct RUNPATH settings. For example, prior to installing to the destination path: sh-3.2# otool -L libmysqlcl