From 0e45b3288ebccd0d41c453a75862bf4de2d8c26b Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Mon, 26 Dec 2016 18:10:43 -0700 Subject: [PATCH] CMake: Disable in-source builds. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6a0702a68..e144257a37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ # We require 2.8.4 because earlier releases had a bug # with invalid HEADER_FILE_ONLY behavior in MSVC 2010. cmake_minimum_required(VERSION 2.8.4) +set(CMAKE_DISABLE_SOURCE_CHANGES ON) # Must go before project() below +set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) # Must go before project() below project(Panda3D) enable_testing()