Missing PLATFORM_WINDOWS in IlmBase CMake for Windows

[email protected]
Newsgroups gmane.comp.video.openexr.devel
Message-ID <[email protected]>
Hi all, 

when I try to compile IlmBase with Visual Studio (tested with 2013 and 2010), there are errors about missing __builtin_trap() when using the default CMake-generated project files. 

This is because PLATFORM_WINDOWS is not defined and  __builtin_trap() is only for Linux.  

This can be fixed by adding "/D PLATFORM_WINDOWS" (without quotes) to the CXX compiler flags in the CMake GUI (for all four configurations). However, it would be welcome to add that to the CMake script if building for Windows. 

Best regards 

weaker

_______________________________________________
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.