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:
parent
6f34937993
commit
980bba88aa
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue