]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Small modif for XDR under Windows.
authorageay <ageay>
Thu, 24 Oct 2013 09:06:59 +0000 (09:06 +0000)
committerageay <ageay>
Thu, 24 Oct 2013 09:06:59 +0000 (09:06 +0000)
src/MEDLoader/CMakeLists.txt

index 9929df78b05912e4ca6f247b1aea19654ea2b742..4b369a7151eab48a310ff37e9767dabbc6e61e36 100644 (file)
 
 ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${MEDFILE_DEFINITIONS} ${XDR_DEFINITIONS})
 
-IF(WIN32)
- ADD_DEFINITIONS(-DNOMINMAX)
-ENDIF(WIN32)
-
 IF(SALOME_MED_ENABLE_PYTHON)
   ADD_SUBDIRECTORY(Swig)
 ENDIF(SALOME_MED_ENABLE_PYTHON)
@@ -37,8 +33,9 @@ SET(MEDLOADER_XDR_LIBRARIES)
 
 IF(WIN32)
   IF(SALOME_MED_MEDLOADER_USE_XDR)
-      SET(MEDLOADER_XDR_INCLUDE_DIRS ${XDR_INCLUDE_DIRS})
-      SET(MEDLOADER_XDR_LIBRARIES ${XDR_LIBRARIES})
+    ADD_DEFINITIONS(-DNOMINMAX)
+    SET(MEDLOADER_XDR_INCLUDE_DIRS ${XDR_INCLUDE_DIRS})
+    SET(MEDLOADER_XDR_LIBRARIES ${XDR_LIBRARIES})
   ENDIF(SALOME_MED_MEDLOADER_USE_XDR)
 ELSE(WIN32)
   SET(MEDLOADER_XDR_INCLUDE_DIRS ${XDR_INCLUDE_DIRS})