Skip to content

Commit

Permalink
prevent building in a folder which contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed May 16, 2024
1 parent d0a5678 commit bdb4274
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 bdb4274

Please sign in to comment.