Commit 03fe6ab8 authored by OTB Bot's avatar OTB Bot

Ajout option de compialtion OSSIMMAKINGDLL si BUILD_SHARED pour MinGW et...

Ajout option de compialtion OSSIMMAKINGDLL si BUILD_SHARED pour MinGW et Visual. Ajout egalement des option /nologo et /EHsc pour Visual (cf nmake.opt d'ossim)
parent 71a2b925
......@@ -9,6 +9,24 @@ CHECK_INCLUDE_FILE("dbmalloc.h" CMAKE_HAVE_DBMALLOC_H)
CHECK_INCLUDE_FILE("malloc.h" CMAKE_HAVE_MALLOC_H)
CHECK_INCLUDE_FILE("dlfcn.h" CMAKE_HAVE_DLFCN_H)
# Cf OSSIM configurations : "nmake.opt" for Visual and "configure" for MinGW (and normaly Cygwin)
IF(WIN32)
IF(NOT BORLAND)
IF(NOT CYGWIN)
# For MinGW and Visual platforms
IF(BUILD_SHARED_LIBS)
ADD_DEFINITIONS(-DOSSIMMAKINGDLL)
ENDIF(BUILD_SHARED_LIBS)
# For Visual
IF(NOT MINGW)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /nologo /EHsc ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /nologo /EHsc ")
ENDIF(NOT MINGW)
ENDIF(NOT CYGWIN)
ENDIF(NOT BORLAND)
ENDIF(WIN32)
# itkjpeg headers are not generated and put into the include dir automatically.
# Therefore we have to do it ourselves.
......
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