blob: 645a8d10443ec1716f7019cc131c2fc482c10aab [file] [log] [blame] [edit]
From 773ef6f0cd10069298f4497fa260d2f04351de8c Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 2 Feb 2017 10:13:48 +0300
Subject: [PATCH 7/7] Use standart library name for mingw builds
---
DevIL/src-IL/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/DevIL/src-IL/CMakeLists.txt b/DevIL/src-IL/CMakeLists.txt
index b47d2b0d..3cda85cf 100644
--- a/DevIL/src-IL/CMakeLists.txt
+++ b/DevIL/src-IL/CMakeLists.txt
@@ -219,11 +219,11 @@ set_target_properties(IL PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${LIBDIR})
set_target_properties(IL PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${LIBDIR})
set_target_properties(IL PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${LIBDIR})
-if(WIN32)
+if(MSVC)
# Linux uses libIL.so, libILU.so, and libILUT.so, but Windows uses
# DevIL.dll, ILU.dll, and ILUT.dll.
set_target_properties(IL PROPERTIES OUTPUT_NAME "DevIL")
-endif(WIN32)
+endif(MSVC)
if(UNICODE)
MESSAGE("DevIL, Compiling IL Unicode")
--
2.11.0