Skip to content

Commit

Permalink
Make sure building can only happen in a build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Jul 2, 2023
1 parent 9d64311 commit 076ec5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
cmake_minimum_required(VERSION 3.12)

if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
message(FATAL_ERROR "Please create a build directory. Building inside the oceanpop directory directly would prevent the asset directory from being build correctly.")
endif()

project(oceanpop)

set(CMAKE_CXX_STANDARD 17)
Expand Down

0 comments on commit 076ec5d

Please sign in to comment.