We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b507238 commit 9f6e4eeCopy full SHA for 9f6e4ee
CMake/mafDataTestDownload.cmake
@@ -1,11 +1,21 @@
1
MACRO (mafDataTestDownload)
2
set(GIT_REPOSITORY "git://github.com/b3c/maf3data.git")
3
4
+ if(NOT EXISTS ${MAF_DATA_DIR})
5
execute_process(
6
COMMAND "${GIT_EXECUTABLE}" clone ${GIT_REPOSITORY} ${MAF_DATA_DIR}
7
OUTPUT_VARIABLE _out
8
ERROR_VARIABLE _err
9
RESULT_VARIABLE _res)
10
+ else(NOT EXISTS ${MAF_DATA_DIR})
11
+ execute_process(
12
+ WORKING_DIRECTORY ${MAF_DATA_DIR}
13
+ COMMAND "${GIT_EXECUTABLE}" pull
14
+ OUTPUT_VARIABLE _out
15
+ ERROR_VARIABLE _err
16
+ RESULT_VARIABLE _res)
17
+ endif(NOT EXISTS ${MAF_DATA_DIR})
18
+
19
20
message(STATUS "out: ${_out}")
21
message(STATUS "err: ${_err}")
0 commit comments