summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mrázek2012-03-28 19:52:36 +0200
committerPetr Mrázek2012-03-28 19:52:36 +0200
commit6ea0d810bba467870f25e327d8164471e4524c0d (patch)
tree4edbe7b952fb2a1c0270f7c404461d4634c583d6
parent84de54addb65c7947248ff7e7bd7b3b8f28505c4 (diff)
parentb57ab1493c83596c7237fc818bc2525a19d59286 (diff)
downloaddfhack-6ea0d810bba467870f25e327d8164471e4524c0d.tar.gz
dfhack-6ea0d810bba467870f25e327d8164471e4524c0d.tar.bz2
dfhack-6ea0d810bba467870f25e327d8164471e4524c0d.tar.xz
Merge https://github.com/mikestewart/dfhack
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83130b30..a5179c2b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,11 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "In-source builds are not allowed.")
endif()
+# make sure all the necessary submodules have been set up
+if (NOT EXISTS ${dfhack_SOURCE_DIR}/library/xml/codegen.pl OR NOT EXISTS ${dfhack_SOURCE_DIR}/depends/clsocket/CMakeLists.txt)
+ message(FATAL_ERROR "Required submodules could not be found! First run 'git submodule init' and 'git submodule update' from the root DFHack directory. (See the section 'Getting the Code' in Compile.html)")
+endif()
+
# set up versioning.
set(DF_VERSION_MAJOR "0")
set(DF_VERSION_MINOR "34")