Skip to content

Commit

Permalink
Add info on how to avoid the "Prevented in-tree build" message with C…
Browse files Browse the repository at this point in the history
…Make
  • Loading branch information
slouken committed Aug 6, 2021
1 parent ac20167 commit eec41d2
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
@@ -1,5 +1,5 @@
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 source code and call cmake from there")
message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL source code and run \"cmake -S ${CMAKE_SOURCE_DIR} -B .\" from there")
endif()

cmake_minimum_required(VERSION 3.0.0)
Expand Down

0 comments on commit eec41d2

Please sign in to comment.