This is a dead simple change but it's also my first commit so I figured I would request a review.
All this commit does is make sure if multiple cflags are received from the wx-config utility that it be converted back into a string so gcc doesn't choke on it. Since it's short enough I guess it would be useful to post the commit here: commit 873ad28a305b718e09b97d9a287c0c5c162766c0 Author: Richard M. Shaw <[email protected]> Date: Thu Aug 21 12:45:42 2014 -0500 Make sure cflags in UsewxWidgets are a string, not a list. diff --git a/Modules/UsewxWidgets.cmake b/Modules/UsewxWidgets.cmake index f2f260d..7c1f925 100644 --- a/Modules/UsewxWidgets.cmake +++ b/Modules/UsewxWidgets.cmake @@ -88,6 +88,8 @@ if (wxWidgets_FOUND) endif() if (wxWidgets_CXX_FLAGS) + # Flags are expected to be a string here, not a list. + string(REPLACE ";" " " wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}") MSG("wxWidgets_CXX_FLAGS=${wxWidgets_CXX_FLAGS}") endif() --- end --- Thanks, Richard
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
