[CMake] How to set Install_name on OS X
    Brad King 
    brad.king at kitware.com
       
    Tue Oct 10 16:08:24 EDT 2006
    
    
  
Mike Jackson wrote:
> I am attempting to set the "install_name" on OS X for Shared Libraries but
> the solution that I _thought_ would work does not because somewhere in cmake
> the linker flag "-install_name" is _already_ defined and so adding another
> one just confuses the linker.
>   Is there some way I can hack a .cmake file to expose and set the value for
> "-install_name"
> 
> I need this because I need the install path to point to
> "@executable_path/../Frameworks" or "@executable_path/../PlugIns" and not
> some directory somewhere?
> 
> Or is there a command line argument I can pass to Make to over-ride what is
> in the makefile?
cmake --help-command SET_TARGET_PROPERTIES
-Brad
    
    
More information about the CMake
mailing list