MantisBT - Open CASCADE
View Issue Details
0027499Open CASCADE[OCCT] OCCT:Configurationpublic2016-05-15 16:402018-07-23 13:32
kgv 
bugmaster 
normalfeature 
closedfixed 
MacOSX
 
[OCCT] 7.1.0[OCCT] 7.1.0 
Not needed
0027499: Configuration, CMake - add option INSTALL_NAME_DIR on OS X
On OS X libraries are usually installed not system-wise but within application bundle, having therefore relative installation paths.

Unlike on Windows, OS X linker does not look the libraries near executable location. To simulation the similar behavior, executable and libraries are usually use install_path with path specified though virtual @executable_path location.

Although this path can be changed using install_name_tool on OS X (unlike Linux, where path can be specified only at library building time), it is still more convenient to specify this path at libraries building step to avoid complex scripting at application packaging step.

CMake allows specifying the root of this path though INSTALL_NAME_DIR option:
set_target_properties (${PROJECT_NAME} PROPERTIES BUILD_WITH_INSTALL_RPATH 1 INSTALL_NAME_DIR "@executable_path/../Frameworks").

Therefore it is proposed to add this option in user interface.
No tags attached.
Issue History
2016-05-15 16:40kgvNew Issue
2016-05-15 16:40kgvAssigned To => kgv
2016-05-15 16:42gitNote Added: 0054042
2016-05-15 16:42kgvAssigned Tokgv => ibs
2016-05-15 16:42kgvStatusnew => assigned
2016-05-16 14:24kgvNote Added: 0054056
2016-05-16 14:24kgvStatusassigned => resolved
2016-05-17 10:22ibsNote Added: 0054085
2016-05-17 10:22ibsStatusresolved => reviewed
2016-05-19 10:51bugmasterStatusreviewed => tested
2016-05-19 11:06bugmasterTest case number => Not needed
2016-05-19 11:12kgvAssigned Toibs => bugmaster
2016-05-20 11:18bugmasterChangeset attached => occt master 09eca2b5
2016-05-20 11:18bugmasterStatustested => verified
2016-05-20 11:18bugmasterResolutionopen => fixed
2016-05-20 12:20gitNote Added: 0054173
2016-12-09 16:33aivStatusverified => closed
2016-12-09 16:37aivFixed in Version => 7.1.0
2018-07-23 13:32kgvRelationship addedparent of 0029977

Notes
(0054042)
git   
2016-05-15 16:42   
Branch CR27499 has been created by kgv.

SHA-1: 1787f7f55953cda1808cd7a70c7e1ee7243602f8


Detailed log of new commits:

Author: kgv
Date: Sun May 15 16:41:30 2016 +0300

    0027499: Configuration, CMake - add option INSTALL_NAME_DIR on OS X
(0054056)
kgv   
2016-05-16 14:24   
Patch is ready for review.
(0054085)
ibs   
2016-05-17 10:22   
there are no remarks
(0054173)
git   
2016-05-20 12:20   
Branch CR27499 has been deleted by inv.

SHA-1: 1787f7f55953cda1808cd7a70c7e1ee7243602f8