diff --git a/CMakeLists.txt b/CMakeLists.txt index 67936abe..3283fb03 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)