Skip to content

Commit

Permalink
prevent building in a folder which contains spaces (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC authored May 16, 2024
1 parent d0a5678 commit d9d262d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.25)
project(Darkflame)

# check if the path to the source directory contains a space
if("${CMAKE_SOURCE_DIR}" MATCHES " ")
message(FATAL_ERROR "The server cannot build in the path (" ${CMAKE_SOURCE_DIR} ") because it contains a space. Please move the server to a path without spaces.")
endif()

include(CTest)

set(CMAKE_CXX_STANDARD 20)
Expand Down

0 comments on commit d9d262d

Please sign in to comment.