diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-14 04:40:06 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-14 04:40:06 +0000 |
| commit | 5cf46bc3a97cd476fbf506076f7123594410ea03 (patch) | |
| tree | 3c700104e4b243c5627f86606590f6878540468c /Graphics/GraphicsEngineOpenGL | |
| parent | Few more changes to support MinGW build (diff) | |
| download | DiligentCore-5cf46bc3a97cd476fbf506076f7123594410ea03.tar.gz DiligentCore-5cf46bc3a97cd476fbf506076f7123594410ea03.zip | |
Another couple of updates to GL and VK backend CMake files to fix MinGW build
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/CMakeLists.txt | 5 |
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) |
