CMake: Use .a suffix for import libraries

So it will have the same extension as the libraries created by makefile.gcc.
This commit is contained in:
Maarten Bent
2021-06-17 23:16:03 +02:00
parent 6f34937993
commit 980bba88aa

View File

@@ -249,6 +249,11 @@ function(wx_set_target_properties target_name is_base)
PREFIX "${lib_prefix}" 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) if(wxBUILD_SHARED)
target_compile_definitions(${target_name} PRIVATE "WXDLLNAME=${wxDLLNAME}") target_compile_definitions(${target_name} PRIVATE "WXDLLNAME=${wxDLLNAME}")
endif() endif()