[CMake] Problem getting out-of-source builds (yes I deleted CMakeCache.txt)
Convey, Christian J CIV NUWC NWPT
christian.convey at navy.mil
Thu Aug 13 10:24:48 EDT 2009
Hi guys,
Does anyone know why I might be having trouble getting out-of-source builds?
I have this directory structure:
foo
/build
/src
/CMakeLists.txt
/library_A
/CMakeLists.txt
/a.cpp
...
/library_B
/CMakeLists.txt
/b.cpp
...
My goal is to have this work:
> cd foo/build
> cmake ../src/CMakeLists.txt
> make
But my problems is that when I invoke 'cmake' as shown above, it places the build files under 'foo/src/', rather than under 'foo/build/'.
I'm absolutely positive that the file 'foo/src/CMakeCache.txt' does not exist when I invoke cmake. I'm running CMake 2.6.2.
Any ideas?
Christian Convey
Scientist
Naval Undersea Warfare Centers
Newport, Rhode Island, USA
(phone) (401) 832-6824
(fax) (401) 832-4749
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5218 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090813/7e9b9854/attachment.bin>
More information about the CMake
mailing list