Skip to content

Commit f48bfdf

Browse files
wip
1 parent 0c9b23f commit f48bfdf

File tree

2 files changed

+17
-24
lines changed

2 files changed

+17
-24
lines changed

.github/workflows/osrm-backend.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
docker stop osrm-container
167167
168168
build-test-publish:
169-
#needs: format-taginfo-docs
169+
needs: format-taginfo-docs
170170
strategy:
171171
matrix:
172172
include:
@@ -519,13 +519,12 @@ jobs:
519519
echo "Using ${JOBS} jobs"
520520
pushd ${OSRM_BUILD_DIR}
521521
522-
python3 -m venv .venv
523-
524-
source .venv/bin/activate
525-
526-
python3 -m pip install conan==2.7.1
527-
528-
conan profile detect --force
522+
if [[ "${ENABLE_CONAN}" == "ON" ]]; then
523+
python3 -m venv .venv
524+
source .venv/bin/activate
525+
python3 -m pip install conan==2.7.1
526+
conan profile detect --force
527+
fi
529528
530529
ccache --zero-stats
531530
cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
@@ -566,9 +565,11 @@ jobs:
566565
run: |
567566
make -C test/data benchmark
568567
569-
# # macOS SIP strips the linker path. Reset this inside the running shell
570-
# export LD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }}
571-
# ./example/build/osrm-example test/data/mld/monaco.osrm
568+
# macOS SIP strips the linker path. Reset this inside the running shell
569+
if [[ "${ENABLE_CONAN}" == "OFF" ]]; then
570+
export LD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }}
571+
./example/build/osrm-example test/data/mld/monaco.osrm
572+
fi
572573
573574
# All tests assume to be run from the build directory
574575
pushd ${OSRM_BUILD_DIR}

CMakeLists.txt

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -652,19 +652,11 @@ list(APPEND DEPENDENCIES_INCLUDE_DIRS "${PKGCONFIG_INCLUDE_DIR}")
652652
list(APPEND DEPENDENCIES_INCLUDE_DIRS "${PKGCONFIG_INCLUDE_DIR}/osrm")
653653
JOIN("-I${DEPENDENCIES_INCLUDE_DIRS}" " -I" PKGCONFIG_OSRM_INCLUDE_FLAGS)
654654

655-
# # Boost uses imported targets, we need to use a generator expression to extract
656-
# # the link libraries to be written to the pkg-config file.
657-
# # Conan & TBB define dependencies as CMake targets too, that's why we do the same for them.
658-
if (NOT ENABLE_CONAN)
659-
foreach(engine_lib ${ENGINE_LIBRARIES})
660-
message(STATUS "Adding ${engine_lib} to pkg-config dependencies")
661-
if("${engine_lib}" MATCHES "^boost.*" OR "${engine_lib}" MATCHES "^CONAN_LIB.*" OR "${engine_lib}" MATCHES "^TBB.*")
662-
list(APPEND PKGCONFIG_DEPENDENT_LIBRARIES "$<TARGET_LINKER_FILE:${engine_lib}>")
663-
else()
664-
list(APPEND PKGCONFIG_DEPENDENT_LIBRARIES "${engine_lib}")
665-
endif()
666-
endforeach(engine_lib)
667-
endif()
655+
656+
foreach(engine_lib ${ENGINE_LIBRARIES})
657+
list(APPEND PKGCONFIG_DEPENDENT_LIBRARIES "${engine_lib}")
658+
endforeach(engine_lib)
659+
668660
JOIN("${PKGCONFIG_DEPENDENT_LIBRARIES}" " " PKGCONFIG_OSRM_DEPENDENT_LIBRARIES)
669661

670662
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/pkgconfig.in pkgconfig.configured @ONLY)

0 commit comments

Comments
 (0)