message handler - Add log4cxx directory to CMakeLists.txt
authorJustin Dickow <jjdickow@gmail.com>
Thu, 17 Jul 2014 18:03:03 +0000 (14:03 -0400)
committerJustin Dickow <jjdickow@gmail.com>
Thu, 17 Jul 2014 18:03:03 +0000 (14:03 -0400)
Authors

Andrey Oleynik
Dmitriy Trunov
Dmitry Chmerev
Konstantin Kolodiy
Newton Kim
Polina Vyshnevska

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
src/components/hmi_message_handler/CMakeLists.txt

index eff2b3f..741e037 100644 (file)
@@ -38,5 +38,6 @@ add_library("HMIMessageHandler" ${SOURCES})
 target_link_libraries("HMIMessageHandler" ${LIBRARIES})
 
 if(ENABLE_LOG)
-  target_link_libraries("HMIMessageHandler" log4cxx)
+  add_dependencies("HMIMessageHandler" liblog4cxx)
+  target_link_libraries("HMIMessageHandler" log4cxx -L${LOG4CXX_LIBS_DIRECTORY})
 endif()