diff options
-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) |