Skip to content
Snippets Groups Projects
Commit 7b531248 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Ajout option de compilation pour supprimer les warning pour compilation galib (-w)

parent 7efacc92
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,13 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
# Build otbgalib library
FILE(GLOB GALIB_SRCS "ga/*.C" )
# Adjust the compiler flags to avoid problems with ossim code.
IF(CMAKE_COMPILER_IS_GNUCXX)
FOREACH(f ${GALIB_SRCS} )
SET_SOURCE_FILES_PROPERTIES( ${f} PROPERTIES COMPILE_FLAGS -w )
ENDFOREACH(f)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ADD_LIBRARY(otbgalib ${GALIB_SRCS})
TARGET_LINK_LIBRARIES (otbgalib)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment