[CMake] cmake out of source build writes build files at source dirs?

Bo Thorsen bo at askmonty.org
Mon Aug 16 03:28:54 EDT 2010


Hi Claus,

If you didn't already, please post this to http://cmake.org/Bug instead. 
The CMake people usually don't take bug reports from this list.

Bo.

Den 28-07-2010 20:34, Claus Klein skrev:
> Today, I discovered than in the special case of a substituted
> PROJECT_SOURCE_DIR,
> all build files for subdir packages are created in PROJECT_SOURCE_DIR
> and not at the PROJECT_BINARY_DIR.
>
> I use windows cmd shell
> subst w: z:/some/deep/path/to/source/dir
>
> Than I create a new build dir:
>
> cd /d w:/
> mkdir build
> cd build
> cmake ..
>
>
> after that, all subdirs of the source dir are created as
> w:/build<subdir1>
> w:/build<subdir2>
> ...
> filled with the cmake build files.
>
> I tested cmake 2.8.0, 2.8.1 and 2.8.2 version. all have the same behaviour!
> The created project builds fine too.
>
> It seems that the PROJECT_BINARY_DIR and the subdir paths are
> concatenated without a path separator.
>
> Claus
>
>
> _______________________________________________
> 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



Bo Thorsen.
Monty Program AB.

-- 

MariaDB: MySQL replacement
Community developed. Feature enhanced. Backward compatible.


More information about the CMake mailing list