Commit ade9f0f4 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Correction CMakeLists pour supprimer les warning de multi-lignes : solution :...

Correction CMakeLists pour supprimer les warning de multi-lignes : solution : SET_PROPRETIES sur fichier .cxx
A FAIRE : trouver l'option équivalente pour Visual !
parent c3837044
......@@ -3,11 +3,14 @@ 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")
SET_SOURCE_FILES_PROPERTIES(
KullbackLeiblerDistanceChDet.cxx
PROPERTIES COMPILE_FLAGS -Wno-comment
)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ADD_EXECUTABLE(ChangeDetectionFrameworkExample ChangeDetectionFrameworkExample.cxx )
TARGET_LINK_LIBRARIES(ChangeDetectionFrameworkExample OTBCommon gdal OTBIO ITKCommon ITKIO)
......
......@@ -3,8 +3,10 @@ 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")
SET_SOURCE_FILES_PROPERTIES(
SensorModelExample.cxx
PROPERTIES COMPILE_FLAGS -Wno-comment
)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
......
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