[CMake] Question of using cmake in Windows

2014-06-23 Thread jici gao
Hi, I am using cmake (3.0.0) to setup environment for my compiling on Windows and require mingw-w64 compiler. I pretty much followed your instruction with Method 2 here: http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F But cmake output always showed that it is building

Re: [CMake] Question of using cmake in Windows

2014-06-23 Thread Bill Hoffman
On 6/23/2014 12:24 PM, jici gao wrote: So why only cmake gui version works for me, not the cmake command? Use the -G option to the cmake on the command line to pick a generator. cmake --help should list the ones supported by your version of cmake. -Bill -- Powered by www.kitware.com

Re: [CMake] Question of using cmake in Windows

2014-06-23 Thread jici gao
Ok, run cmake -G MinGW Makefiles -DCMAKE_C_COMPILER=/c/mingw-w64-4.9.0/mingw64/bin I got this error: CMake Error: the source directory does not appear to contain CMakeLists.txt What I am missing? Thanks again! On Mon, Jun 23, 2014 at 9:32 AM, Bill Hoffman bill.hoff...@kitware.com wrote:

Re: [CMake] Question of using cmake in Windows

2014-06-23 Thread John Drescher
Ok, run cmake -G MinGW Makefiles -DCMAKE_C_COMPILER=/c/mingw-w64-4.9.0/mingw64/bin I got this error: CMake Error: the source directory does not appear to contain CMakeLists.txt What I am missing? You are not passing the folder of the source. John -- Powered by www.kitware.com