[CMake] MinGW detection question

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 4 11:11:37 EST 2008


E. Wing wrote:
> I'm playing around with the MinGW generator. I was wondering if there
> is a special environmental variable that CMake will check for finding
> mingw32-make.exe. MinGW is not in my PATH so everytime I specify the
> MinGW generator in CMakeSetup, it complains it can't find the make
> program. I was hoping I could make CMake happy without adding more
> stuff to my PATH.
> 

CMake assumes the environment is setup to work.  Just like with visual 
studio, you have to run vcvars.bat.  Basically, cmake expects a working 
compiler, and can not modify the PATH. It can not modify the PATH 
because it won't be around when make is actually run.

-Bill


More information about the CMake mailing list