diff options
| author | 2011-05-27 17:36:30 +0200 | |
|---|---|---|
| committer | 2011-05-27 17:36:30 +0200 | |
| commit | 75720a5cd2d258fb1548a58bf09467fd39df4a49 (patch) | |
| tree | 22fe1f429ec5aea4ba655bec1beee17a2176ec48 | |
| parent | 821a0d614cff8f64a5718278217beadbabc0c928 (diff) | |
| download | libplist-75720a5cd2d258fb1548a58bf09467fd39df4a49.tar.gz libplist-75720a5cd2d258fb1548a58bf09467fd39df4a49.tar.bz2 | |
Add check for libcnary submodule checkout before building
| -rw-r--r-- | CMakeLists.txt | 9 |
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 | |||
| 30 | 30 | ||
| 31 | ENABLE_TESTING() | 31 | ENABLE_TESTING() |
| 32 | 32 | ||
| 33 | IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/libcnary/CMakeLists.txt") | ||
| 34 | MESSAGE(FATAL_ERROR " | ||
| 35 | You need to checkout the 'libcnary' submodule to build libplist. | ||
| 36 | To do so, perform the following steps in the base directory: | ||
| 37 | git submodule init | ||
| 38 | git submodule update | ||
| 39 | Then, run cmake again.") | ||
| 40 | ENDIF() | ||
| 41 | |||
| 33 | ADD_SUBDIRECTORY( libcnary ) | 42 | ADD_SUBDIRECTORY( libcnary ) |
| 34 | ADD_SUBDIRECTORY( src ) | 43 | ADD_SUBDIRECTORY( src ) |
| 35 | ADD_SUBDIRECTORY( plutil ) | 44 | ADD_SUBDIRECTORY( plutil ) |
