summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/CMakeLists.txt2
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/pch.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
index 913282a8..356b7240 100644
--- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
+++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
@@ -138,7 +138,7 @@ add_library(GraphicsEngineOpenGL-static STATIC
add_library(GraphicsEngineOpenGL-shared SHARED
readme.md
)
-if(PLATFORM_WIN32)
+if(PLATFORM_WIN32 AND MSVC)
target_sources(GraphicsEngineOpenGL-shared
PRIVATE
src/DLLMain.cpp
diff --git a/Graphics/GraphicsEngineOpenGL/include/pch.h b/Graphics/GraphicsEngineOpenGL/include/pch.h
index 3319c6d5..60c2ee92 100644
--- a/Graphics/GraphicsEngineOpenGL/include/pch.h
+++ b/Graphics/GraphicsEngineOpenGL/include/pch.h
@@ -42,7 +42,9 @@
# endif
# include "GL/glew.h"
// Glew includes <windows.h>
-# define NOMINMAX
+# ifndef NOMINMAX
+# define NOMINMAX
+# endif
# include "GL/wglew.h"
# include <GL/GL.h>