Skip to content

Commit

Permalink
Use CMAKE_CURRENT_*_DIR instead of CMAKE_*_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Oct 5, 2023
1 parent 25b7706 commit 3a51231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(SDL_REQUIRED_VERSION 2.0.10)
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_ttf source code and call cmake from there")
endif()

Expand Down

0 comments on commit 3a51231

Please sign in to comment.