[CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?
Stefan Buschmann
s_buschmann at gmx.de
Fri May 30 14:16:48 EDT 2008
Thanks! I finally got it to work now. The problem was that invoking the
script does not really "export" the variables to the shell - so in my
own tests, "cmake" had it's environment variables set right, because I
invoked it directly from the script, but when running "make" later, the
variables were not set. I'm now exporting all those variables directly
in my .bashrc file - is there a better way to invoke the script?
Thanks,
Stefan
Bill Hoffman schrieb:
> Stefan Buschmann wrote:
>> Hi all!
>>
>> I'm trying to build my project on Windows using "GNU Makefiles" and
>> cl.exe under Cygwin. I'm using CMake-2.6-patch 0 and Microsoft Visual
>> Studio 2008 Professional.
>
> Here is my setup:
>
> export CC=cl
> export CXX=cl
>
> export INCLUDE="C:\Program Files\Microsoft Visual Studio
> 9.0\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio
> 9.0\VC\INCLUDE;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\include;"
>
> export LIB="C:\Program Files\Microsoft Visual Studio
> 9.0\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio
> 9.0\VC\LIB;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib;"
>
> export
> LIBPATH="C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program
> Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Program
> Files\Microsoft Visual Studio 9.0\VC\LIB;"
>
> export PATH=/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\
> 9.0/Common7/IDE:/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\
> 9.0/VC/BIN:/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\
> 9.0/Common7/Tools:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v3.5:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727:/cygdrive/c/Program\
> Files/Microsoft\ Visual\ Studio\
> 9.0/VC/VCPackages:/cygdrive/c/Program\ Files//Microsoft\
> SDKs/Windows/v6.0A/bin:/cygdrive/c/emacs/emacs-21.3/bin/:${PATH}
>
>
> Works fine.
>
> -Bill
More information about the CMake
mailing list