[CMake] What controls where cmake writes the build files?
Rick McGuire
object.rexx at gmail.com
Sat May 17 12:43:31 EDT 2014
I thought I had a handle on how to do out-of-source builds, but suddenly,
cmake has started doing something very strange when I try to create a new
build.
I have a source tree checked out in one location. In another location (a
"sibling" directory to the source tree), I have a builds subdirectory in
which I have my various working builds. I was able to create one build
directory for a debug build and a second to check out the release builds.
Everything seems to be working the way I expected and everything is
building correctly.
Today, I wanted to create a third build subdirectory so I could start work
on NSIS installer builds. However, when I run the cmake command with the
NMake Makefiles generator (the same generator used for the other builds),
it is insisting on writing the files to the root of the source tree (the
same directory containing the CMakeLists.txt file) rather than in the
current directory? I've tried all sorts of combinations here, but can't
seem to replicate my earlier success at creating the debug and release
subdirectories originally. What's going on here?
Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140517/0aa390eb/attachment.html>
More information about the CMake
mailing list