This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 28bf6321a9 cmake: disable in-source builds. (#10661)
28bf6321a9 is described below
commit 28bf6321a9557f6190f9bab219e257243d327c9d
Author: Chris McFarlen <[email protected]>
AuthorDate: Tue Oct 24 14:39:23 2023 -0500
cmake: disable in-source builds. (#10661)
Co-authored-by: Chris McFarlen <[email protected]>
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd337ae2c0..8a3ea44a36 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,10 @@
#
#######################
+if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
+ message(FATAL_ERROR "In source builds are disabled. Use a preset, -B or run
from a different directory")
+endif()
+
cmake_minimum_required(VERSION 3.20..3.27)
project(ats VERSION 10.0.0)