Restrict arch suffix for DLLs to MSVC in CMake builds
Amend the changes of edcfeab29d (Include arch-specific suffix in the DLL
names in CMake builds too, 2022-12-23) to only do it when using MSVC but
not the other compilers as this would make CMake incompatible with what
makefile.gcc does.
This commit is contained in:
parent
e0db72d80e
commit
ebf790f76e
1 changed files with 3 additions and 1 deletions
|
|
@ -212,7 +212,9 @@ function(wx_set_target_properties target_name)
|
|||
if(wxCOMPILER_PREFIX)
|
||||
wx_string_append(dll_suffix "_${wxCOMPILER_PREFIX}")
|
||||
endif()
|
||||
if(WIN32_MSVC_NAMING AND wxARCH_SUFFIX)
|
||||
# For compatibility with MSVS project files and makefile.vc, use arch
|
||||
# suffix for non-x86 (including x86_64) DLLs.
|
||||
if(MSVC AND wxARCH_SUFFIX)
|
||||
# This one already includes the leading underscore, so don't add another one.
|
||||
wx_string_append(dll_suffix "${wxARCH_SUFFIX}")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue