From 7e6cf61b4c2d4e1cf21183447a6b086eb6113188 Mon Sep 17 00:00:00 2001 From: WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> Date: Fri, 26 Mar 2021 18:04:19 +0000 Subject: Fix static iconv linking on Windows --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67936ab..3283fb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,10 @@ if (WIN32) option(BUILD_STATIC "Statically link dependencies" OFF) endif() +if (BUILD_STATIC AND WIN32) + set(CMAKE_FIND_LIBRARY_SUFFIXES .a) +endif() + if (ENABLE_LTO) if (WIN32) add_compile_options(-flto) -- cgit v1.2.3