fix: still build ZLIB on msys2

This commit is contained in:
TaurusXin 2024-02-12 22:37:04 +08:00
parent 435aab5de6
commit e5906e425e
Signed by: taurusxin
GPG Key ID: C334DCA04AC2D2CC
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.14) cmake_minimum_required(VERSION 3.14)
cmake_policy(SET CMP0077 NEW)
project(ncmdump LANGUAGES CXX) 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) target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2)
if(WIN32) if(WIN32)
if(CMAKE_CXX_COMPILER_ID STREQUAL 'GNU') if(CMAKE_COMPILER_IS_GNUCXX)
target_link_options(ncmdump PRIVATE -O2 -municode) target_link_options(ncmdump PRIVATE -O2 -municode)
endif() endif()
endif() endif()