[CMake] MSYS + MINGW + wx-config.sh
Werner Smekal
smekal at iap.tuwien.ac.at
Wed Feb 14 14:44:13 EST 2007
Hi,
if you run cmake in an MSYS shell, sh.exe is in the path - "sh
wx-config" should just work than, or not? Do you call cmake with the
option '-G "MSYS Makefiles" '?
Werner
klaas.holwerda wrote:
> Hi,
>
> I like to use Cmake for wxWidgets using MSYS + Mingw.
> And for that i need the output of wx-config, which is a shell script.
>
> But the return from the following is, that it is not a windows executable.
> How can i tell Cmake that i am using MSYS as a shell, and therefore that
> it can call shell shell script?
> Or is there a way to call msys its shell directly from cmake, using
> something like "sh -c wx-config".
> So in fact msys would run the shell script, but Cmake call a normal
> executable
> I understand that cmake.exe and CmakeSetup.exe do not know of the
> existence of MSYS, but don't understand how to get around this.
>
> EXECUTE_PROCESS(
> COMMAND "wx-config" "--selected_config"
> OUTPUT_VARIABLE wxWidgets_SELECTED_CONFIG
> RESULT_VARIABLE wxWidgets_WANTED_AVAILABLE
> )
>
> Thanks for any advice,
>
> Klaas
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
--
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: smekal at iap.tuwien.ac.at
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
More information about the CMake
mailing list