[CMake] Getting an RPath set in a Library
Mike Jackson
imikejackson at gmail.com
Sat Jun 30 11:50:33 EDT 2007
So I tried various incantations of SET_TARGET_PROPERTIES and all had
no effect:
IF ( APPLE )
SET_TARGET_PROPERTIES (${MXADATAMODEL_LIB_NAME}
PROPERTIES
INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib
)
ENDIF ( APPLE )
So I am obviously not seeing the forest for the trees..
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Jun 28, 2007, at 4:42 PM, Alan W. Irwin wrote:
> On 2007-06-28 16:33-0400 Mike Jackson wrote:
>
>> I have a project where I am building a shared library. How do I
>> get cmake to add an rpath to the built library? I would like the
>> rpath to reflect my "installed" location? I am on OS X 10.4.10 Intel.
>
> From the documentation of SET_TARGET_PROPERTIES I believe
> INSTALL_NAME_DIR is what you want for Mac OS X.
>
> Alan
> __________________________
> Alan W. Irwin
>
More information about the CMake
mailing list