mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Handling of git submodule in cmake
This commit is contained in:
parent
0a2f6caba0
commit
24538da200
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,15 @@ else (ENABLE_SYNC)
|
||||||
message (WARNING "ENABLE_SYNC=OFF. Not building sync support.")
|
message (WARNING "ENABLE_SYNC=OFF. Not building sync support.")
|
||||||
endif (ENABLE_SYNC)
|
endif (ENABLE_SYNC)
|
||||||
|
|
||||||
|
message ("-- Looking for libshared")
|
||||||
|
if (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/.git)
|
||||||
|
message ("-- Found libshared")
|
||||||
|
else (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/.git)
|
||||||
|
message ("-- Cloning libshared")
|
||||||
|
execute_process (COMMAND git submodule update --init
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
endif (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/.git)
|
||||||
|
|
||||||
message ("-- Looking for SHA1 references")
|
message ("-- Looking for SHA1 references")
|
||||||
if (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
|
if (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
|
||||||
set (HAVE_COMMIT true)
|
set (HAVE_COMMIT true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue