aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6aff23e..dacbff2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,12 +45,14 @@ pkg_check_modules(EXTRAS REQUIRED libxml-2.0 openssl xmlsec1 xmlsec1-openssl jso
add_compile_options(${EXTRAS_CFLAGS})
include_directories(${EXTRAS_INCLUDE_DIRS})
link_libraries(${EXTRAS_LIBRARIES})
+link_directories(${EXTRAS_LIBRARY_DIRS})
pkg_check_modules(libzip libzip>=0.11)
if(libzip_FOUND AND USE_LIBZIP)
add_compile_options(${libzip_CFLAGS})
include_directories(${libzip_INCLUDE_DIRS})
link_libraries(${libzip_LIBRARIES})
+ link_directories(${libzip_LIBRARY_DIRS})
add_definitions(-DUSE_LIBZIP=1)
else()
add_definitions(-DUSE_LIBZIP=0)
@@ -61,6 +63,7 @@ if(libsystemd_FOUND)
add_compile_options(${libsystemd_CFLAGS})
include_directories(${libsystemd_INCLUDE_DIRS})
link_libraries(${libsystemd_LIBRARIES})
+ link_directories(${libsystemd_LIBRARY_DIRS})
else()
add_definitions(-DNO_LIBSYSTEMD)
endif()
@@ -70,6 +73,7 @@ if(AFB_FOUND)
add_compile_options(${AFB_CFLAGS})
include_directories(${AFB_INCLUDE_DIRS})
link_libraries(${AFB_LIBRARIES})
+ link_directories(${AFB_LIBRARY_DIRS})
endif()
###########################################################################
@@ -81,6 +85,7 @@ else(SIMULATE_SECMGR)
add_compile_options(${SECMGR_CFLAGS})
include_directories(${SECMGR_INCLUDE_DIRS})
link_libraries(${SECMGR_LIBRARIES})
+ link_directories(${SECMGR_LIBRARY_DIRS})
add_definitions(-DSIMULATE_SECURITY_MANAGER=0)
endif(SIMULATE_SECMGR)
@@ -91,6 +96,7 @@ else(SIMULATE_SMACK)
add_compile_options(${SMACK_CFLAGS})
include_directories(${SMACK_INCLUDE_DIRS})
link_libraries(${SMACK_LIBRARIES})
+ link_directories(${SMACK_LIBRARY_DIRS})
add_definitions(-DSIMULATE_LIBSMACK=0)
endif(SIMULATE_SMACK)
@@ -165,7 +171,7 @@ if(libsystemd_FOUND AND AFB_FOUND)
add_library(jbus STATIC utils-jbus.c)
add_executable(afm-user-daemon afm-user-daemon.c)
- target_link_libraries(afm-user-daemon jbus utils afbwsc)
+ target_link_libraries(afm-user-daemon jbus utils)
install(TARGETS afm-user-daemon DESTINATION ${CMAKE_INSTALL_BINDIR})
add_library(afm-binding MODULE afm-binding.c)