Hi Klaas,
I don't actually understand your problem correctly. As I understand you
have MSYS, wxWidgets compiled with MSYS and want somehow call wx-config
which is a bash script from the cmake file? Is this correct?
I actually have never tried to use FindwxWidgets.cmake in MSYS (because
compiling wxWidgets in MSYS took so long, that I interrupted it), but
there you can find
FIND_PROGRAM(wxWidgets_CONFIG_EXECUTABLE wx-config)
IF(wxWidgets_CONFIG_EXECUTABLE)
SET(wxWidgets_FOUND TRUE)
# run the wx-config program to get cxxflags
EXEC_PROGRAM(sh
ARGS "${wxWidgets_CONFIG_EXECUTABLE} --cxxflags"
OUTPUT_VARIABLE wxWidgets_CXX_FLAGS
RETURN_VALUE RET)
FindwxWidgets.cmake is supposed to work with MSYS. Here wx-config is
called during the cmake configuration process. If this doesn't work,
does FindwxWidgets.cmake work for you in MSYS?
Werner
klaas.holwerda wrote:
Werner Smekal wrote:
Hi,
if you run cmake in an MSYS shell, sh.exe is in the path - "sh
wx-config" should just work than, or not?
No it does not.
Do you call cmake with the option '-G "MSYS Makefiles" '?
Makes no difference, i used CmakeSetup.exe and did choose exactly that.
The problem is that a windows executable is not aware of MSYS.
The only way is to call from cmake.exe a shell interpreter and as
argument the script name, but i don't know how.
I think i once used a special download for Cygwin, or i compiled it
there, just to get it working for Cygwin, but can not find it.
Did read this already:
http://www.cmake.org/pipermail/cmake/2005-December/007619.html
It looks what is needed is special binaries for Mingw/Msys and same for
Cygwin,
Experience someone?
Thanks,
Klaas
--
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: [EMAIL PROTECTED]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake