summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-07 15:54:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-08-07 15:54:46 (GMT)
commite468a6dd407b5cc44c504de521b8c8b94c3f5525 (patch)
treeaae6c3f5bb4cf41b5dbc9b4875f78296b069ea6c
parentade507f64caad8f763ae011da4bdf99453e8bcd8 (diff)
parent34ca0178aee8cf505a21bf82b897940040f3764f (diff)
downloadCMake-e468a6dd407b5cc44c504de521b8c8b94c3f5525.zip
CMake-e468a6dd407b5cc44c504de521b8c8b94c3f5525.tar.gz
CMake-e468a6dd407b5cc44c504de521b8c8b94c3f5525.tar.bz2
Merge topic 'FindwxWidgets-optional'
34ca0178ae FindwxWidgets: Fix returning optional components Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8680
-rw-r--r--Modules/FindwxWidgets.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake
index cc76b35..78fa481 100644
--- a/Modules/FindwxWidgets.cmake
+++ b/Modules/FindwxWidgets.cmake
@@ -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(