diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-07-20 14:52:18 +0200 |
---|---|---|
committer | Martijn van Beurden <mvanb1@gmail.com> | 2022-08-01 21:02:03 +0200 |
commit | 428e681784b57de38bdb94924e642e071799c703 (patch) | |
tree | 06c4c49825daa11ae45e15ceb7c61bd769bd2277 | |
parent | 4e823662ec5121e84d7d5ca3aa62cf87064b229f (diff) | |
download | flac-428e681784b57de38bdb94924e642e071799c703.tar.gz |
[CMake] Don't search for libiconv and libintl on Windows
The functions these libs provide don't seem to be used on Windows
anyway. This fixes https://github.com/xiph/flac/issues/249
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/share/getopt/CMakeLists.txt | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 761dd49b..2aa7daea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,8 +77,10 @@ if(HAVE_GIT) ) endif() -find_package(Iconv) -set(HAVE_ICONV ${Iconv_FOUND}) +if(NOT WIN32) + find_package(Iconv) + set(HAVE_ICONV ${Iconv_FOUND}) +endif() if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline") diff --git a/src/share/getopt/CMakeLists.txt b/src/share/getopt/CMakeLists.txt index 83b530e5..d905615e 100644 --- a/src/share/getopt/CMakeLists.txt +++ b/src/share/getopt/CMakeLists.txt @@ -1,6 +1,8 @@ check_include_file("string.h" HAVE_STRING_H) -find_package(Intl) +if(NOT WIN32) + find_package(Intl) +endif() add_library(getopt STATIC getopt.c getopt1.c) |