summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-04-15 19:12:41 +0200
committerBardur Arantsson <bardur@scientician.net>2015-04-15 19:12:41 +0200
commitedede30a361f34d8c2f1d5de45adeac9392f41b9 (patch)
tree879a9d2a7a08da6af3ffebc78f27f24cb83a4930 /CMakeLists.txt
parent9824343f3d467f15f7faa4be9919325b72067e69 (diff)
Fix linking if jansson is installed in non-default directory
("non-default" in the sense of not-searched-automatically by the linker).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be48e6ee..9519785a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,7 @@ PKG_CHECK_MODULES(JANSSON REQUIRED jansson)
IF(JANSSON_FOUND)
ADD_DEFINITIONS(${JANSSON_CFLAGS})
INCLUDE_DIRECTORIES(${JANSSON_INCLUDE_DIRS})
+ LINK_DIRECTORIES(${JANSSON_LIBRARY_DIRS})
SET(LIBS ${LIBS} ${JANSSON_LIBRARIES})
ENDIF()