diff --git a/CMakeLists.txt b/CMakeLists.txt index ba412b190d7f6bf7b132a6e316a9aae5b1327020..96023a6eb8c505fe200457d8996c52a119328242 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,7 +328,7 @@ ENDIF(OTB_USE_CURL) #------------------------------- # Mapnik Library #------------------------------- -OPTION(OTB_USE_MAPNIK "Use mapnik library." OFF) +OPTION(OTB_USE_MAPNIK "Use mapnik library (EXPERIMENTAL)." OFF) MARK_AS_ADVANCED(OTB_USE_MAPNIK) IF(OTB_USE_MAPNIK) diff --git a/Code/Common/CMakeLists.txt b/Code/Common/CMakeLists.txt index ee0d097e500f0dec4a79d461dd22d5c72ac21ff2..d6ac37d2afb9dea75f0c83fe28218ac9fabc9402 100644 --- a/Code/Common/CMakeLists.txt +++ b/Code/Common/CMakeLists.txt @@ -8,6 +8,11 @@ ENDIF( NOT OTB_USE_MAPNIK ) ADD_LIBRARY(OTBCommon ${OTBCommon_SRCS}) TARGET_LINK_LIBRARIES (OTBCommon ITKAlgorithms ITKStatistics ITKCommon) +IF (OTB_USE_MAPNIK) +#TODO this line should be refined when we will like to have this capability with windows + TARGET_LINK_LIBRARIES(OTBCommon ${MAPNIK_LIBRARY}/libmapnik.so) +ENDIF(OTB_USE_MAPNIK) + IF(OTB_LIBRARY_PROPERTIES) SET_TARGET_PROPERTIES(OTBCommon PROPERTIES ${OTB_LIBRARY_PROPERTIES}) ENDIF(OTB_LIBRARY_PROPERTIES)