From 53395a819a62e583209a680b1e07c78b0ff8e05d Mon Sep 17 00:00:00 2001 From: Mark Young Date: Mon, 25 Jan 2016 16:49:47 -0700 Subject: [PATCH] FIXES: Non-MSVC compilers on Windows were failing. Fixes LunarXchange Issue #301. --- layers/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt index 44345d6..cec1690 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() -- 2.7.4