link against on linux/gcc
This commit is contained in:
parent
cc9236b8db
commit
9bf6bf2c78
@ -84,6 +84,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
|||||||
# using Visual Studio C++
|
# using Visual Studio C++
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Configuring other platform dependencies
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
SET(CMAKE_OSX_ARCHITECTURES "x86_64")
|
SET(CMAKE_OSX_ARCHITECTURES "x86_64")
|
||||||
message(STATUS "Set Architecture to x64 on OS X")
|
message(STATUS "Set Architecture to x64 on OS X")
|
||||||
@ -95,6 +96,10 @@ if(APPLE)
|
|||||||
ENDIF (DARWIN_VERSION GREATER 12)
|
ENDIF (DARWIN_VERSION GREATER 12)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
target_link_libraries(osrm-datastore rt)
|
||||||
|
endif(UNIX AND NOT APPLE)
|
||||||
|
|
||||||
#Check Boost
|
#Check Boost
|
||||||
set(BOOST_MIN_VERSION "1.44.0")
|
set(BOOST_MIN_VERSION "1.44.0")
|
||||||
find_package( Boost ${BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS} REQUIRED )
|
find_package( Boost ${BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS} REQUIRED )
|
||||||
|
Loading…
Reference in New Issue
Block a user