FindwxWidgets: Fix returning optional components

Fixes: #25150
This commit is contained in:
Rick Budé
2023-08-02 12:51:48 +02:00
committed by Brad King
parent 1cba4f1128
commit 34ca0178ae

View File

@@ -848,7 +848,8 @@ if(wxWidgets_FIND_STYLE STREQUAL "unix")
DBG_MSG_V("wxWidgets required components : ${_cmp_req}")
DBG_MSG_V("wxWidgets optional components : ${_cmp_opt}")
if(DEFINED _cmp_opt)
string(REPLACE ";" "," _cmp_opt "--optional-libs ${_cmp_opt}")
string(REPLACE ";" "," _cmp_opt "${_cmp_opt}")
set(_cmp_opt "--optional-libs" ${_cmp_opt})
endif()
string(REPLACE ";" "," _cmp_req "${_cmp_req}")
execute_process(