ADD_DEFINITIONS(-O2 -Wall -fPIC -fvisibility=hidden -Wl,--as-needed)
# Base Dependency
-SET(dependencies "libcontext-shared libcontext-server")
+SET(dependencies libcontext-shared libcontext-server)
# Profiles
IF("${PROFILE}" STREQUAL "mobile")
SET_TARGET_PROPERTIES(${target} PROPERTIES VERSION ${FULLVER})
# Package Config
+FOREACH(item IN LISTS dependencies)
+ SET(deps_str "${deps_str} ${item}")
+ENDFOREACH(item)
+
SET(VERSION ${FULLVER})
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(PC_NAME ${PROJECT_NAME})
SET(PC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
SET(PC_CFLAGS "-I\${includedir}/context-service")
SET(PC_LDFLAGS "-l${target}")
-SET(PC_REQUIRED "${dependencies}")
+SET(PC_REQUIRED "${deps_str}")
CONFIGURE_FILE(
${PROJECT_NAME}.pc.in
LIST(REMOVE_DUPLICATES deps_collected)
-FOREACH(item IN LISTS deps_collected)
- SET(deps_filtered "${deps_filtered} ${item}")
-ENDFOREACH(item)
-
-STRING(STRIP "${deps_filtered}" deps_filtered)
SET(sources ${sources} ${srcs_collected} PARENT_SCOPE)
-SET(dependencies "${dependencies} ${deps_filtered}" PARENT_SCOPE)
+SET(dependencies ${dependencies} ${deps_collected} PARENT_SCOPE)
SET(compile_defs ${compile_defs} ${cdef_collected} PARENT_SCOPE)