summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
index 356b7240..ab1268c3 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 AND MSVC)
+if(MSVC)
target_sources(GraphicsEngineOpenGL-shared
PRIVATE
src/DLLMain.cpp
@@ -200,6 +200,9 @@ target_compile_definitions(GraphicsEngineOpenGL-shared PUBLIC ENGINE_DLL=1)
if(PLATFORM_WIN32)
+ # Do not add 'lib' prefix when building with MinGW
+ set_target_properties(GraphicsEngineOpenGL-shared PROPERTIES PREFIX "")
+
# Set output name to GraphicsEngineOpenGL_{32|64}{r|d}
set_dll_output_name(GraphicsEngineOpenGL-shared GraphicsEngineOpenGL)