[CMake] Problem getting out-of-source builds (yes I deleted CMakeCache.txt)

Michael Wild themiwi at gmail.com
Thu Aug 13 10:56:52 EDT 2009


On 13. Aug, 2009, at 16:24, Convey, Christian J CIV NUWC NWPT wrote:

> 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

that should be: cmake ../src

Michael



More information about the CMake mailing list