e94969000a
Summary: Add detecting and blocking in-source builds A simple cmake function, which detects if the source and build dir are one and the same. This unfortunately does not catch the case when the build dir is inside the source dir, since we actually want to support that. For example, creating a 'build' directory inside the project source directory should be allowed. Add a clean_all custom target in cmake This target will clean all the files inside the build directory. It should be used with care! A new cmake module is created, since invoking cmake -E remove_directory will delete the directory and we want to keep it. This way, we also avoid using platform specific shell command, i.e `rm -rf` and we can make clean_all smarter in the future. Untrack build/.gitignore from git Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D92
3 lines
89 B
CMake
3 lines
89 B
CMake
file(GLOB build_contents "${CMAKE_BINARY_DIR}/*")
|
|
file(REMOVE_RECURSE ${build_contents})
|