Commit ad27838b by Vicent Marti

Proper submodule dependency

parent 6443eaf2
...@@ -246,8 +246,8 @@ IF (BUILD_CLAR) ...@@ -246,8 +246,8 @@ IF (BUILD_CLAR)
SET(SRC_CLAR "${CLAR_PATH}/main.c" "${CLAR_PATH}/clar_libgit2.c" "${CLAR_PATH}/clar/clar.c") SET(SRC_CLAR "${CLAR_PATH}/main.c" "${CLAR_PATH}/clar_libgit2.c" "${CLAR_PATH}/clar/clar.c")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-prototypes") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-prototypes")
ADD_CUSTOM_COMMAND( ADD_CUSTOM_TARGET(
OUTPUT ${CLAR_PATH}/clar/clar.c clar_submodule
COMMAND git submodule update --init tests-clar/clar COMMAND git submodule update --init tests-clar/clar
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
) )
...@@ -255,7 +255,7 @@ IF (BUILD_CLAR) ...@@ -255,7 +255,7 @@ IF (BUILD_CLAR)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${CLAR_PATH}/clar.suite OUTPUT ${CLAR_PATH}/clar.suite
COMMAND ${PYTHON_EXECUTABLE} clar/generate.py . -xonline COMMAND ${PYTHON_EXECUTABLE} clar/generate.py . -xonline
DEPENDS ${SRC_TEST} DEPENDS clar_submodule ${SRC_TEST}
WORKING_DIRECTORY ${CLAR_PATH} WORKING_DIRECTORY ${CLAR_PATH}
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment