From 8155934be6b1659d9b5577d615366af7500743fd Mon Sep 17 00:00:00 2001 From: DragoonX6 Date: Sun, 12 Mar 2017 04:44:55 +0100 Subject: [PATCH] Fix building on MinGW-w64 Some HLSL to Spirv tests fail. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4537201..32395c05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,9 @@ endif(ENABLE_HLSL) if(WIN32) set(CMAKE_DEBUG_POSTFIX "d") - include(ChooseMSVCCRT.cmake) + if(MSVC) + include(ChooseMSVCCRT.cmake) + endif(MSVC) add_definitions(-DGLSLANG_OSINCLUDE_WIN32) elseif(UNIX) add_definitions(-fPIC)