Re: 2.2.0 release plans

Nicholas Yue <[email protected]>
Newsgroups gmane.comp.video.openexr.devel
Message-ID <CADYXiJJgr=dsR-F7NqdpHsUbq8u8TcDNeW3TAju_yghPsPZrCw@mail.gmail.com>
On 16 July 2014 10:22, Karl Rasche <[email protected]> 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

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.