From 4c569d92adae03b0fd7adedc9ae369254ba8381e Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 24 Oct 2013 08:18:08 +0000 Subject: [PATCH] Add NOMINMAX definition on WIN32 platform. --- src/MEDLoader/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MEDLoader/CMakeLists.txt b/src/MEDLoader/CMakeLists.txt index 792bde49a..9929df78b 100644 --- a/src/MEDLoader/CMakeLists.txt +++ b/src/MEDLoader/CMakeLists.txt @@ -20,6 +20,10 @@ 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) -- 2.39.2