[CMake] How to set the cmake variable on windows

Michael Drüing michael at drueing.de
Mon Jan 14 17:38:23 UTC 2013


Hi,

 

As Patrick already told  on Jan.10, you have to use

   cmake -G"MinGW Makefiles"

To tell CMake what type of Makefiles you want. Use

cmake --help

To see all available parameters for -G

 

-Michael

 

From: kde-windows-bounces at kde.org [mailto:kde-windows-bounces at kde.org] On Behalf Of Parchet Michaël
Sent: Monday, January 14, 2013 5:52 PM
To: bdellegrazie at iee.org
Cc: 'KDE on Windows'; cmake at cmake.org
Subject: RE: [CMake] How to set the cmake variable on windows

 

 

Hi,

 

I call cmake with this command line.

 

Cmake CMakeList.

 

Is it correct ?

 

Tanks for your answer.

 

Best regards

 

mparchet

De : Brett Delle Grazie [mailto:brett.dellegrazie at gmail.com] 
Envoyé : lundi 14 janvier 2013 14:42
À : Parchet Michaël
Cc : KDE on Windows; cmake at cmake.org
Objet : Re: [CMake] How to set the cmake variable on windows

 

On 10 January 2013 22:28, Parchet Michaël <mparchet at sunrise.ch> wrote:


Hello,

How can I set minGW as default cmake compiler on windows ?
Tanks for your answer.

Regards

mparchet
Le 10 janv. 2013 à 22:47, Patrick von Reth <patrick.vonreth at gmail.com> a écrit :

> Hi you have to use "cmake -G"MinGW Makefiles" ..."

>
> On 10/01/2013, Parchet Michaël < <mailto:mparchet at sunrise.ch> mparchet at sunrise.ch> wrote:
>> My compilretr is minGW.
>>
>>
>>
>> De : Parchet Michaël [mailto:mparchet at sunrise.ch]
>> Envoyé : jeudi 10 janvier 2013 21:36
>> À : cmake at cmake.org; 'KDE on Windows'
>> Objet : How to set the cmake variable on windows
>>
>>
>>
>> Hello,
>>
>>
>>
>> When I try to execute cmake on the terminal on windows, I get an error.
>> (See
>> attachment).
>>
>>
>>
>> It seems that some variables aren’t set.
>>

 

Which generator are you using?

I use:

cmake -G"MinGW Makefiles" <path to source dir>

 

I believe the default generator on windows is Microsoft's' compilers, hence the problem with CL.exe.

 

Assumptions:

This presumes standard MinGW32 compilers are available on the path - for me this is C:\MinGW\bin

Do not put the MSYS shell (C:\MinGW\msys\1.0\bin) on the path as well or CMake will complain.

 

You shouldn't need to set CXX or CC environment variables but you can do so as a last resort.

 

Note that "make" in this case (windows command prompt) is usually: mingw32-make, not gmake or make

 

Good luck,

 

Brett

  

>>
>>
>> Are there environmental variables or variables set in a specific file.
>>
>>
>>
>> Thanks a lot your support
>>
>>
>>
>> Happy new year.
>>
>>
>>
>> Best regards
>>
>>
>>
>> mparchet

> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-windows/attachments/20130114/5ccdfc99/attachment-0001.html>


More information about the Kde-windows mailing list