From af97da1e6653fe9102dfc183e7a0cc8f4362f303 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Tue, 31 Oct 2023 09:48:55 -0700 Subject: [PATCH] cmake: Restrict library suffixes for static builds. (#10126) Restricts library suffixes to .a for static builds, will build missing static dependencies if necessary. Fixes #10089. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa1dc8a0b36..99cdac7cea0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -339,9 +339,9 @@ if(BUILD_SHARED_LIBS) endif() else() if (WIN32) - set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a .dll) + set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a) else() - set(CMAKE_FIND_LIBRARY_SUFFIXES .a .so .dylib) + set(CMAKE_FIND_LIBRARY_SUFFIXES .a) endif() endif()