FindwxWidgets: special case -latomic

Fixes: #26718
This commit is contained in:
Osyotr
2025-02-20 17:23:25 -05:00
parent d3484a31c6
commit b69d64f72b

View File

@@ -963,6 +963,10 @@ if(wxWidgets_FIND_STYLE STREQUAL "unix")
foreach(_wx_lib_ ${wxWidgets_LIBRARIES})
if("${_wx_lib_}" MATCHES "^-l(.*)")
set(_wx_lib_name "${CMAKE_MATCH_1}")
if(_wx_lib_name STREQUAL "atomic")
continue()
endif()
unset(_wx_lib_found CACHE)
find_library(_wx_lib_found NAMES ${_wx_lib_name} HINTS ${wxWidgets_LIBRARY_DIRS})
if(_wx_lib_found STREQUAL _wx_lib_found-NOTFOUND)