From 9b183647f2b662d2855dc75547b091065f14fc2d Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 30 Oct 2024 00:38:05 +0100 Subject: [PATCH] Allow in-tree build --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7abeffc7..7f71e24b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,10 +8,6 @@ set(MINOR_VERSION 0) set(MICRO_VERSION 0) set(SDL_REQUIRED_VERSION 3.1.3) -if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) - message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL_image source code and call cmake from there") -endif() - project(SDL3_image LANGUAGES C VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}"