diff options
author | Brad King <brad.king@kitware.com> | 2006-09-13 15:22:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-09-13 15:22:27 (GMT) |
commit | ff46146dfc87b7689c809de51c0d87b38c023c52 (patch) | |
tree | 2e0ee341741cf8a0fe99db8791411a97c032af50 /Modules | |
parent | f5b118f5a1b818946ea04e3dfbc3e03d402de7cd (diff) | |
download | CMake-ff46146dfc87b7689c809de51c0d87b38c023c52.zip CMake-ff46146dfc87b7689c809de51c0d87b38c023c52.tar.gz CMake-ff46146dfc87b7689c809de51c0d87b38c023c52.tar.bz2 |
BUG: Patch from Peter Visser to run wx-config from an MSYS prompt.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindwxWidgets.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 7e0fb33..fc0bbb5 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -539,8 +539,8 @@ ELSE(WIN32_STYLE_FIND) SET(wxWidgets_FOUND TRUE) # run the wx-config program to get cxxflags - EXEC_PROGRAM(${wxWidgets_CONFIG_EXECUTABLE} - ARGS "--cxxflags" + EXEC_PROGRAM(sh + ARGS "${wxWidgets_CONFIG_EXECUTABLE} --cxxflags" OUTPUT_VARIABLE wxWidgets_CXX_FLAGS RETURN_VALUE RET) IF(RET EQUAL 0) @@ -583,8 +583,8 @@ ELSE(WIN32_STYLE_FIND) # be useful here... #STRING(REPLACE ";" "," wxWidgets_USE_LIBS "${wxWidgets_USE_LIBS}") STRING(REGEX REPLACE ";" "," wxWidgets_USE_LIBS "${wxWidgets_USE_LIBS}") - EXEC_PROGRAM(${wxWidgets_CONFIG_EXECUTABLE} - ARGS "--libs ${wxWidgets_USE_LIBS}" + EXEC_PROGRAM(sh + ARGS "${wxWidgets_CONFIG_EXECUTABLE} --libs ${wxWidgets_USE_LIBS}" OUTPUT_VARIABLE wxWidgets_LIBRARIES RETURN_VALUE RET) IF(RET EQUAL 0) |