From 1fb779037d046cced5d064b7d28b33f4b4b24a23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?=
<miloskomarcevic@aim.com>
Date: Wed, 27 Sep 2023 20:29:37 +0000
Subject: [PATCH] CMake: enable resource compilation on all Windows
---
libtiff/CMakeLists.txt | 4 ++--
tools/CMakeLists.txt | 4 ++--
tools/unsupported/CMakeLists.txt | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libtiff/CMakeLists.txt b/libtiff/CMakeLists.txt
index 9c8024e8..c2da6841 100755
--- a/libtiff/CMakeLists.txt
+++ b/libtiff/CMakeLists.txt
@@ -113,8 +113,8 @@ target_include_directories(tiff
${TIFF_INCLUDES}
)
-# MSVC specific resource preparation
-if (WIN32 AND MSVC)
+# Windows specific resource preparation
+if (WIN32)
message(STATUS "Include resource version information for LibTIFF")
target_sources(tiff PRIVATE tif_win32_versioninfo.rc)
source_group("Resource Files" FILES tif_win32_versioninfo.rc)
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 3810bb3e..08b25bd2 100755
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -22,8 +22,8 @@
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
-# MSVC specific resource preparation
-if (WIN32 AND MSVC)
+# Windows specific resource preparation
+if (WIN32)
message(STATUS "Include resource version information for TOOLS")
set(MSVC_RESSOURCE_FILE tif_tools_versioninfo.rc)
source_group("Resource Files" FILES tif_tools_versioninfo.rc)
diff --git a/tools/unsupported/CMakeLists.txt b/tools/unsupported/CMakeLists.txt
index c77c35db..69283949 100644
--- a/tools/unsupported/CMakeLists.txt
+++ b/tools/unsupported/CMakeLists.txt
@@ -24,8 +24,8 @@
message(STATUS "==== Tools - Unsupported =========")
-# MSVC specific resource preparation
-if (WIN32 AND MSVC)
+# Windows specific resource preparation
+if (WIN32)
message(STATUS "Include resource version information for TOOLS-UNSUPPORTED")
set(MSVC_RESSOURCE_FILE tif_tools-unsupported_versioninfo.rc)
source_group("Resource Files" FILES tif_tools-unsupported_versioninfo.rc)