Commit 07cfc8c7 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Ajout option de compialtion : -Wno-comment pour les commentaires multi ligne.

Remarque  :ca marche en ligne de commande mais curieusement dans le CMakeLists, ca n'a pas l'air de marcher !!
A controler.
Autre solution : remplacer les commentaires // dans le code par un commentaire bloc /* ... */
parent 0097f79f
PROJECT(ChangeDetectionExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")
# Adjust the compiler flags to avoid problems with multiline comment.
IF(CMAKE_COMPILER_IS_GNUCXX)
# Hide warnings in code.
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-comment")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ADD_EXECUTABLE(ChangeDetectionFrameworkExample ChangeDetectionFrameworkExample.cxx )
TARGET_LINK_LIBRARIES(ChangeDetectionFrameworkExample OTBCommon gdal OTBIO ITKCommon ITKIO)
......
PROJECT(ProjectionsExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")
# Adjust the compiler flags to avoid problems with multiline comment.
IF(CMAKE_COMPILER_IS_GNUCXX)
# Hide warnings in code.
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-comment")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ADD_EXECUTABLE(SensorModelExample SensorModelExample.cxx )
TARGET_LINK_LIBRARIES(SensorModelExample OTBProjections OTBCommon OTBIO ITKCommon ITKIO)
......
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