File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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.
654654foreach (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 ()
657661endforeach (engine_lib)
658662#message(FATAL_ERROR "XXX")
659663# JOIN("${PKGCONFIG_DEPENDENT_LIBRARIES}" " " PKGCONFIG_OSRM_DEPENDENT_LIBRARIES)
You can’t perform that action at this time.
0 commit comments