openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] 2.2.0 release plans


From: Nicholas Yue
Subject: Re: [Openexr-devel] 2.2.0 release plans
Date: Wed, 16 Jul 2014 10:47:40 -0700

On 16 July 2014 10:22, Karl Rasche <address@hidden> wrote:
Not being a cmake guru, how feasible would it be to define NOMINMAX in the generated project files' preprocessor settings?  That sounds nicer than a hardcoded #define NOMINMAX.

I have found it useful to handle the Windows NOMINMAX requirement in CMakeLists.txt.

I use something like the following

IF (WIN32)
  SET ( Boost_USE_STATIC_LIBS ON )
  ADD_DEFINITIONS ( /DNT_PLUGIN /DREQUIRE_IOSTREAM /D_USE_MATH_DEFINES /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS /DOPENEXR_DLL /DHALF_EXPORTS /DNOGDI /DWIN32_LEAN_AND_MEAN )
  SET (ZLIB zlibwapi )
ELSEIF (APPLE)

Cheers
-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

reply via email to

[Prev in Thread] Current Thread [Next in Thread]