summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-05-27 17:36:30 +0200
committerGravatar Nikias Bassen2011-05-27 17:36:30 +0200
commit75720a5cd2d258fb1548a58bf09467fd39df4a49 (patch)
tree22fe1f429ec5aea4ba655bec1beee17a2176ec48
parent821a0d614cff8f64a5718278217beadbabc0c928 (diff)
downloadlibplist-75720a5cd2d258fb1548a58bf09467fd39df4a49.tar.gz
libplist-75720a5cd2d258fb1548a58bf09467fd39df4a49.tar.bz2
Add check for libcnary submodule checkout before building
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0790f74..9bb66c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,15 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/include
ENABLE_TESTING()
+IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/libcnary/CMakeLists.txt")
+ MESSAGE(FATAL_ERROR "
+You need to checkout the 'libcnary' submodule to build libplist.
+To do so, perform the following steps in the base directory:
+ git submodule init
+ git submodule update
+Then, run cmake again.")
+ENDIF()
+
ADD_SUBDIRECTORY( libcnary )
ADD_SUBDIRECTORY( src )
ADD_SUBDIRECTORY( plutil )