aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-01-25 16:49:47 -0700
committerMark Young <marky@lunarg.com>2016-01-25 16:49:47 -0700
commit53395a819a62e583209a680b1e07c78b0ff8e05d (patch)
tree62893337d1c276ed1f63ba1495d1f031fafa4fdc
parent941707dd7ddbe7212691e5ae6f84c4aa8afa63ff (diff)
downloadusermoji-53395a819a62e583209a680b1e07c78b0ff8e05d.tar.xz
FIXES: Non-MSVC compilers on Windows were failing.
Fixes LunarXchange Issue #301.
-rw-r--r--layers/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt
index 44345d62..cec16902 100644
--- a/layers/CMakeLists.txt
+++ b/layers/CMakeLists.txt
@@ -96,7 +96,7 @@ if (WIN32)
# optimizations are enabled in a release build, this only affects the debug build. For now,
# enable /bigobj mode for all debug layer files. An alternative for the future is to split
# draw_state.cpp into multiple files, which will also alleviate the compilation error.
- if (NOT (MSVC_VERSION LESS 1900))
+ if (MSVC AND NOT (MSVC_VERSION LESS 1900))
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj")
else()