diff Resources/CMake/DcmtkConfiguration.cmake @ 101:428784e59dcd

trying to use log4cplus
author jodogne
date Wed, 03 Oct 2012 11:44:46 +0200
parents 27dc762e3dc8
children f2ecbe7d50b8
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Wed Oct 03 09:33:25 2012 +0200
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Wed Oct 03 11:44:46 2012 +0200
@@ -58,19 +58,18 @@
   include(FindDCMTK)
 
   include_directories(${DCMTK_INCLUDE_DIR})
-  link_libraries(${DCMTK_LIBRARIES} oflog ofstd wrap)
+  link_libraries(${DCMTK_LIBRARIES} ofstd wrap)
 
   add_definitions(
     -DHAVE_CONFIG_H=1
     )
 
-  message("${DCMTK_DIR}/oflog")
-  
   IF (EXISTS "${DCMTK_DIR}/oflog")
     set(DCMTK_BUNDLES_LOG4CPLUS 1)
+    link_libraries(${DCMTK_LIBRARIES} oflog)
   else()
     set(DCMTK_BUNDLES_LOG4CPLUS 0)
   endif()
 endif()
 
-message("DCMTK includes its own copy of Log4Cplus: ${DCMTK_BUNDLES_LOG4CPLUS}")
+message("Does DCMTK includes its own copy of Log4Cplus: ${DCMTK_BUNDLES_LOG4CPLUS}")