Commit f65671b3 authored by Julien Michel's avatar Julien Michel

COMP: Trying to fix curl export

parent 7a168752
......@@ -357,6 +357,9 @@ IF(OTB_USE_CURL)
"Cannot find CURL library. Please set CURL_LIBRARY or SET OTB_USE_CURL OFF.")
ENDIF (NOT CURL_LIBRARY)
# Add compiler option
ADD_DEFINITIONS(-DOTB_USE_CURL)
INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
ENDIF(OTB_USE_CURL)
......
......@@ -127,3 +127,8 @@ IF(OTB_USE_EXTERNAL_GDAL)
ENDIF(NOT GDAL_FOUND)
INCLUDE_DIRECTORIES(${GDAL_INCLUDE_DIR})
ENDIF(OTB_USE_EXTERNAL_GDAL)
# The use curl definition
IF(OTB_USE_CURL)
ADD_DEFINITIONS(-DOTB_USE_CURL)
ENDIF(OTB_USE_CURL)
......@@ -66,9 +66,6 @@
/* Use Visu/Gui configurations */
#cmakedefine OTB_USE_VISU_GUI
/** Add the use curl directive */
#cmakedefine OTB_USE_CURL
#cmakedefine OTB_I18N
#define OTB_LANG @OTB_LANG@
#define OTB_LANG_LOCATION @OTB_LANG_LOCATION@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment