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 d90dd39 commit 57359d2
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 @@ -8,7 +8,7 @@ set(MINOR_VERSION 0)
set(MICRO_VERSION 0)
set(SDL_REQUIRED_VERSION 3.0.0)

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_net source code and call cmake from there")
endif()

Expand Down

0 comments on commit 57359d2

Please sign in to comment.