Skip to content

Commit 99b1574

Browse files
committed
build: disable in-tree builds
This ensures that one does not accidentally build t-s-c in tree, which means that the source tree is always pristine and the build tree root is different from the source tree. The previous change to ignore CMake artifacts would only be caused by an accidental in-tree build which should be frowned upon and be treated as unsupported.
1 parent eea8f84 commit 99b1574

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ else()
2121
endif()
2222
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
2323

24+
set(CMAKE_DISABLE_IN_SOURCE_BUILD YES)
25+
2426
option(BUILD_SHARED_LIBS "Build shared libraries by default" YES)
2527

2628
find_package(dispatch QUIET)

0 commit comments

Comments
 (0)