|
From: | weaker |
Subject: | [Openexr-devel] Missing PLATFORM_WINDOWS in IlmBase CMake for Windows |
Date: | Thu, 13 Mar 2014 13:22:49 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |