SDL_mixer: Use CMAKE_CURRENT_*_DIR instead of CMAKE_*_DIR (11bc3)

From 11bc37fa1e836fac91f8c8f7da644b45d2b30a43 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 5 Oct 2023 19:07:13 +0200
Subject: [PATCH] Use CMAKE_CURRENT_*_DIR instead of CMAKE_*_DIR

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e964e046..41f32406 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ set(SDL_REQUIRED_VERSION 2.0.9)
 include(PrivateSdlFunctions)
 sdl_calculate_derived_version_variables()
 
-if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
+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_mixer source code and call cmake from there")
 endif()