So, I had a dynamic library with the following:
SET_TARGET_PROPERTIES(narfencode
PROPERTIES BUILD_WITH_INSTALL_RPATH OFF
INSTALL_NAME_DIR @executable_path
)
When I compile it I get this:
/usr/bin/c++-dynamiclib -headerpad_max_install_names -o
libnarfencode.dylib -install_name
On 2007-10-24 12:16-0600 James Bigler wrote:
So, I had a dynamic library with the following:
SET_TARGET_PROPERTIES(narfencode
PROPERTIES BUILD_WITH_INSTALL_RPATH OFF
INSTALL_NAME_DIR @executable_path
)
When I compile it I get this:
/usr/bin/c++-dynamiclib -headerpad_max_install_names
Hi,
On Oct 24, 2007, at 12:57 PM, Alan W. Irwin wrote:
On 2007-10-24 12:16-0600 James Bigler wrote:
So, I had a dynamic library with the following:
SET_TARGET_PROPERTIES(narfencode
PROPERTIES BUILD_WITH_INSTALL_RPATH OFF
INSTALL_NAME_DIR @executable_path
)
When I compile it I get this:
On Oct 24, 2007, at 3:54 PM, James Bigler wrote:
Hi,
On Oct 24, 2007, at 12:57 PM, Alan W. Irwin wrote:
On 2007-10-24 12:16-0600 James Bigler wrote:
So, I had a dynamic library with the following:
SET_TARGET_PROPERTIES(narfencode
PROPERTIES BUILD_WITH_INSTALL_RPATH OFF
On 2007-10-24 13:54-0600 James Bigler wrote:
Here is what works for us:
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
# No rpath on Darwin. Setting it will only cause trouble.
else(CMAKE_SYSTEM_NAME STREQUAL Darwin)
option(USE_RPATH Use -rpath when linking libraries, executables ON)