Platform specific linker flags
This commit is contained in:
		
							parent
							
								
									811d6deb41
								
							
						
					
					
						commit
						bf0b43aa24
					
				| @ -86,7 +86,11 @@ if (NOT Boost_FOUND) | |||||||
| endif (NOT Boost_FOUND) | endif (NOT Boost_FOUND) | ||||||
| include_directories(${Boost_INCLUDE_DIRS}) | include_directories(${Boost_INCLUDE_DIRS}) | ||||||
| 
 | 
 | ||||||
| target_link_libraries( OSRM ${Boost_LIBRARIES} UUID ) | IF( APPLE ) | ||||||
|  | 	target_link_libraries( OSRM ${Boost_LIBRARIES} UUID ) | ||||||
|  | ELSE( APPLE ) | ||||||
|  | 	target_link_libraries( OSRM ${Boost_LIBRARIES} ) | ||||||
|  | ENDIF( APPLE ) | ||||||
| target_link_libraries( osrm-extract ${Boost_LIBRARIES} UUID ) | target_link_libraries( osrm-extract ${Boost_LIBRARIES} UUID ) | ||||||
| target_link_libraries( osrm-prepare ${Boost_LIBRARIES} UUID ) | target_link_libraries( osrm-prepare ${Boost_LIBRARIES} UUID ) | ||||||
| target_link_libraries( osrm-routed ${Boost_LIBRARIES} OSRM UUID ) | target_link_libraries( osrm-routed ${Boost_LIBRARIES} OSRM UUID ) | ||||||
| @ -104,7 +108,7 @@ find_package( Threads REQUIRED ) | |||||||
| target_link_libraries (osrm-extract ${Threads_LIBRARY}) | target_link_libraries (osrm-extract ${Threads_LIBRARY}) | ||||||
| 
 | 
 | ||||||
| find_package( LuaJIT ) | find_package( LuaJIT ) | ||||||
| IF( LUAJIT_INCLUDE_DIR AND LUAJIT_LIBRARIES AND NOT APPLE) | IF( NOT APPLE AND LUAJIT_INCLUDE_DIR AND LUAJIT_LIBRARIES) | ||||||
| 	include_directories(${LUAJIT_INCLUDE_DIR}) | 	include_directories(${LUAJIT_INCLUDE_DIR}) | ||||||
| 	target_link_libraries( osrm-extract ${LUAJIT_LIBRARIES} ) | 	target_link_libraries( osrm-extract ${LUAJIT_LIBRARIES} ) | ||||||
| 	target_link_libraries( osrm-prepare ${LUAJIT_LIBRARIES} ) | 	target_link_libraries( osrm-prepare ${LUAJIT_LIBRARIES} ) | ||||||
| @ -113,7 +117,7 @@ ELSE( LUAJIT_INCLUDE_DIR ) | |||||||
| 	include_directories(${LUA_INCLUDE_DIR}) | 	include_directories(${LUA_INCLUDE_DIR}) | ||||||
| 	target_link_libraries( osrm-extract ${LUA_LIBRARY} ) | 	target_link_libraries( osrm-extract ${LUA_LIBRARY} ) | ||||||
| 	target_link_libraries( osrm-prepare ${LUA_LIBRARY} ) | 	target_link_libraries( osrm-prepare ${LUA_LIBRARY} ) | ||||||
| ENDIF( LUAJIT_INCLUDE_DIR AND LUAJIT_LIBRARIES ) | ENDIF( NOT APPLE AND LUAJIT_INCLUDE_DIR AND LUAJIT_LIBRARIES ) | ||||||
| 
 | 
 | ||||||
| find_package( LibXml2 REQUIRED ) | find_package( LibXml2 REQUIRED ) | ||||||
| include_directories(${LIBXML2_INCLUDE_DIR}) | include_directories(${LIBXML2_INCLUDE_DIR}) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user