summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-07-20 14:52:18 +0200
committerMartijn van Beurden <mvanb1@gmail.com>2022-08-01 21:02:03 +0200
commit428e681784b57de38bdb94924e642e071799c703 (patch)
tree06c4c49825daa11ae45e15ceb7c61bd769bd2277 /src
parent4e823662ec5121e84d7d5ca3aa62cf87064b229f (diff)
downloadflac-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
Diffstat (limited to 'src')
-rw-r--r--src/share/getopt/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
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)