[CMake] FW: cmake newbie questions

Bill Hoffman bill.hoffman at kitware.com
Wed Jul 30 17:03:32 EDT 2008


Phil Smith wrote:
> But then it complains that there's no CMakeLists.txt in the
> directory.
Anyway, I wasn't clear: the same person isn't likely to be doing z/OS
and Windows on the same machine. But since the same CMakeLists.txt is to
be used, I didn't want to hard-code anything in there. I've changed to
-G -- somehow I missed that before (I did look, honest!).
> 

You really want out of source builds.   You have to give the path to the 
source tree.  First make sure the source tree you are working on has not 
had cmake run on it (no CMakeCache.txt, or other generated files). 
Then, you do this:

cmake -G"Unix Makefiles" ../path/to/your/source

Note, the ../path/to/your/source.  That is important.



> 
> Now, I'm sort of inclined to declare victory for now. But should I?
Are those "failed" messages significant? I was brought up not to ignore
errors without understanding them!


Failing on check size of is not a good thing, and I would track that 
down if I were you...

-Bill


More information about the CMake mailing list