Skip to content

Commit b85f235

Browse files
wip
1 parent 56ccb1e commit b85f235

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,12 @@ JOIN("-I${DEPENDENCIES_INCLUDE_DIRS}" " -I" PKGCONFIG_OSRM_INCLUDE_FLAGS)
652652
# # the link libraries to be written to the pkg-config file.
653653
# # Conan & TBB define dependencies as CMake targets too, that's why we do the same for them.
654654
foreach(engine_lib ${ENGINE_LIBRARIES})
655-
message(STATUS "Adding ${engine_lib} to pkg-config dependencies ")
656-
list(APPEND PKGCONFIG_DEPENDENT_LIBRARIES "$<TARGET_LINKER_FILE:${engine_lib}>")
655+
message(STATUS "Adding ${engine_lib} to pkg-config dependencies")
656+
if("${engine_lib}" MATCHES "^boost.*" OR "${engine_lib}" MATCHES "^CONAN_LIB.*" OR "${engine_lib}" MATCHES "^TBB.*")
657+
list(APPEND PKGCONFIG_DEPENDENT_LIBRARIES "$<TARGET_LINKER_FILE:${engine_lib}>")
658+
else()
659+
list(APPEND PKGCONFIG_DEPENDENT_LIBRARIES "${engine_lib}")
660+
endif()
657661
endforeach(engine_lib)
658662
#message(FATAL_ERROR "XXX")
659663
# JOIN("${PKGCONFIG_DEPENDENT_LIBRARIES}" " " PKGCONFIG_OSRM_DEPENDENT_LIBRARIES)

0 commit comments

Comments
 (0)