CMake now adds RPATH info to executables. Resolves issue #960.
This commit is contained in:
		
							parent
							
								
									9483b781e2
								
							
						
					
					
						commit
						d60caf7095
					
				| @ -222,6 +222,14 @@ endif() | ||||
| 
 | ||||
| file(GLOB InstallGlob Include/osrm/*.h Library/OSRM.h) | ||||
| 
 | ||||
| # Add RPATH info to executables so that when they are run after being installed | ||||
| # (i.e., from /usr/local/bin/) the linker can find library dependencies. For | ||||
| # more info see http://www.cmake.org/Wiki/CMake_RPATH_handling | ||||
| set_property(TARGET osrm-extract PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) | ||||
| set_property(TARGET osrm-prepare PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) | ||||
| set_property(TARGET osrm-datastore PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) | ||||
| set_property(TARGET osrm-routed PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) | ||||
| 
 | ||||
| install(FILES ${InstallGlob} DESTINATION include/osrm) | ||||
| install(TARGETS osrm-extract DESTINATION bin) | ||||
| install(TARGETS osrm-prepare DESTINATION bin) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user