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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to