Skip to content

Commit 1e7e4ff

Browse files
wip
1 parent 67fca9f commit 1e7e4ff

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

CMakeLists.txt

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,15 @@ if (MSVC)
346346
add_definitions(-DBOOST_ALL_NO_LIB)
347347
endif()
348348

349-
set(Boost_USE_STATIC_LIBS ON)
350-
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
351-
find_package(TBB REQUIRED)
352-
find_package(EXPAT REQUIRED)
353-
find_package(BZip2 REQUIRED)
354-
find_package(Lua 5.2 REQUIRED)
355349

356350
if (ENABLE_CONAN)
351+
set(Boost_USE_STATIC_LIBS ON)
352+
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
353+
find_package(TBB REQUIRED)
354+
find_package(EXPAT REQUIRED)
355+
find_package(BZip2 REQUIRED)
356+
find_package(Lua 5.2 REQUIRED)
357+
357358
add_dependency_includes(${Boost_INCLUDE_DIRS})
358359

359360
set(BOOST_BASE_LIBRARIES ${Boost_LIBRARIES})
@@ -380,6 +381,12 @@ if (ENABLE_CONAN)
380381
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/libosmium/include)
381382

382383
else()
384+
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
385+
find_package(TBB REQUIRED)
386+
find_package(EXPAT REQUIRED)
387+
find_package(BZip2 REQUIRED)
388+
find_package(Lua 5.2 REQUIRED)
389+
383390
add_dependency_includes(${Boost_INCLUDE_DIRS})
384391
add_dependency_includes(${TBB_INCLUDE_DIR})
385392
add_dependency_includes(${EXPAT_INCLUDE_DIRS})
@@ -452,7 +459,6 @@ target_link_libraries(osrm-partition osrm_partition ${Boost_PROGRAM_OPTIONS_LIBR
452459
target_link_libraries(osrm-customize osrm_customize ${Boost_PROGRAM_OPTIONS_LIBRARY})
453460
target_link_libraries(osrm-contract osrm_contract ${Boost_PROGRAM_OPTIONS_LIBRARY})
454461
if (BUILD_ROUTED)
455-
message(STATUS "Building osrm-routed ${ZLIB_LIBRARY}")
456462
target_link_libraries(osrm-routed osrm ${Boost_PROGRAM_OPTIONS_LIBRARY} ${OPTIONAL_SOCKET_LIBS} ${ZLIB_LIBRARY})
457463
endif()
458464

@@ -471,15 +477,13 @@ set(GUIDANCE_LIBRARIES
471477
${CMAKE_THREAD_LIBS_INIT}
472478
${LUA_LIBRARIES}
473479
${TBB_LIBRARIES}
474-
${ZLIB_LIBRARY}
475480
${MAYBE_COVERAGE_LIBRARIES})
476481
set(PARTITIONER_LIBRARIES
477482
${BOOST_ENGINE_LIBRARIES}
478483
${CMAKE_THREAD_LIBS_INIT}
479484
${TBB_LIBRARIES}
480485
${MAYBE_RT_LIBRARY}
481-
${MAYBE_COVERAGE_LIBRARIES}
482-
${ZLIB_LIBRARY})
486+
${MAYBE_COVERAGE_LIBRARIES})
483487
set(CUSTOMIZER_LIBRARIES
484488
${BOOST_ENGINE_LIBRARIES}
485489
${ZLIB_LIBRARY}

0 commit comments

Comments
 (0)