Skip to content
Snippets Groups Projects
Commit b4a51e3c authored by Julien Malik's avatar Julien Malik
Browse files

COMP: OTB_USE_PQXX compilation macro is not used anywhere in the code

parent 8259adae
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ IF(OTB_USE_PQXX) ...@@ -7,7 +7,6 @@ IF(OTB_USE_PQXX)
FIND_PACKAGE(Pqxx) FIND_PACKAGE(Pqxx)
IF(PQXX_FOUND) IF(PQXX_FOUND)
MESSAGE(STATUS "Activating Pqxx support") MESSAGE(STATUS "Activating Pqxx support")
ADD_DEFINITIONS(-DOTB_USE_PQXX)
ELSE(PQXX_FOUND) ELSE(PQXX_FOUND)
# Generate an error if no external Pqxx is available # Generate an error if no external Pqxx is available
MESSAGE(FATAL_ERROR "Pqxx required but not found. " MESSAGE(FATAL_ERROR "Pqxx required but not found. "
......
...@@ -240,7 +240,6 @@ IF(OTB_USE_PQXX) ...@@ -240,7 +240,6 @@ IF(OTB_USE_PQXX)
"Cannot find PQXX include directory. Please set PQXX_INCLUDE_DIR or SET OTB_USE_PQXX OFF.") "Cannot find PQXX include directory. Please set PQXX_INCLUDE_DIR or SET OTB_USE_PQXX OFF.")
ENDIF (NOT PQXX_INCLUDE_DIR) ENDIF (NOT PQXX_INCLUDE_DIR)
FIND_LIBRARY(PQXX_LIBRARY pqxx ) FIND_LIBRARY(PQXX_LIBRARY pqxx )
MARK_AS_ADVANCED(PQXX_LIBRARY) MARK_AS_ADVANCED(PQXX_LIBRARY)
IF (NOT PQXX_LIBRARY) IF (NOT PQXX_LIBRARY)
...@@ -255,10 +254,6 @@ IF(OTB_USE_PQXX) ...@@ -255,10 +254,6 @@ IF(OTB_USE_PQXX)
"Cannot find PQ library. Please set PQ_LIBRARY or SET OTB_USE_PQXX OFF.") "Cannot find PQ library. Please set PQ_LIBRARY or SET OTB_USE_PQXX OFF.")
ENDIF (NOT PQ_LIBRARY) ENDIF (NOT PQ_LIBRARY)
# Add compiler option
ADD_DEFINITIONS(-DOTB_USE_PQXX)
INCLUDE_DIRECTORIES(${PQXX_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${PQXX_INCLUDE_DIR})
ENDIF(OTB_USE_PQXX) ENDIF(OTB_USE_PQXX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment