Fix static iconv linking on Windows

This commit is contained in:
WaluigiWare64 2021-03-26 18:04:19 +00:00
parent 2c2e868de0
commit 7e6cf61b4c

View File

@ -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)