diff options
author | Brad King <brad.king@kitware.com> | 2023-08-07 15:54:29 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-08-07 15:54:46 (GMT) |
commit | e468a6dd407b5cc44c504de521b8c8b94c3f5525 (patch) | |
tree | aae6c3f5bb4cf41b5dbc9b4875f78296b069ea6c | |
parent | ade507f64caad8f763ae011da4bdf99453e8bcd8 (diff) | |
parent | 34ca0178aee8cf505a21bf82b897940040f3764f (diff) | |
download | CMake-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.cmake | 3 |
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( |