From: ageay Date: Thu, 24 Oct 2013 09:06:59 +0000 (+0000) Subject: Small modif for XDR under Windows. X-Git-Tag: V7_3_0a1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15851674d0c0d942c487613dbdb8c2328dc4f9db;p=modules%2Fmed.git Small modif for XDR under Windows. --- diff --git a/src/MEDLoader/CMakeLists.txt b/src/MEDLoader/CMakeLists.txt index 9929df78b..4b369a715 100644 --- a/src/MEDLoader/CMakeLists.txt +++ b/src/MEDLoader/CMakeLists.txt @@ -20,10 +20,6 @@ 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})