From 980bba88aa735b1ac5c8395d39d2b753d87254fa Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Thu, 17 Jun 2021 23:16:03 +0200 Subject: [PATCH] CMake: Use .a suffix for import libraries So it will have the same extension as the libraries created by makefile.gcc. --- build/cmake/functions.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake index 5136309ba4..b3d4f371ec 100644 --- a/build/cmake/functions.cmake +++ b/build/cmake/functions.cmake @@ -249,6 +249,11 @@ function(wx_set_target_properties target_name is_base) PREFIX "${lib_prefix}" ) + if(WIN32_MSVC_NAMING AND NOT MSVC) + # match makefile.gcc, use .a instead of .dll.a for import libraries + set_target_properties(${target_name} PROPERTIES IMPORT_SUFFIX ".a") + endif() + if(wxBUILD_SHARED) target_compile_definitions(${target_name} PRIVATE "WXDLLNAME=${wxDLLNAME}") endif()