From e5906e425e8c824384909c5dd0e5a406fea27b81 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Mon, 12 Feb 2024 22:37:04 +0800 Subject: [PATCH] fix: still build ZLIB on msys2 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd3d887..9fecb1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.14) +cmake_policy(SET CMP0077 NEW) project(ncmdump LANGUAGES CXX) @@ -22,7 +23,7 @@ target_include_directories(ncmdump PRIVATE taglib/taglib/toolkit) target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2) if(WIN32) - if(CMAKE_CXX_COMPILER_ID STREQUAL 'GNU') + if(CMAKE_COMPILER_IS_GNUCXX) target_link_options(ncmdump PRIVATE -O2 -municode) endif() endif()