Browse Source

adding submodule update to cmake script

Kenneth Lausdahl 3 years ago
parent
commit
48a5cd2af0

+ 1 - 0
DSL_SemanticAdaptation/be.uantwerpen.ansymo.semanticadaptation.testframework/src/be/uantwerpen/ansymo/semanticadaptation/testframework/StaticGenerators.xtend

@@ -210,6 +210,7 @@ class StaticGenerators {
 		set(HCF_DIR hcf)
 		if(EXISTS ${HCF_DIR})
 			execute_process(COMMAND git pull WORKING_DIRECTORY ${HCF_DIR})
+			execute_process(COMMAND git submodule update --init --recursive WORKING_DIRECTORY ${HCF_DIR})
 		else()
 			execute_process(COMMAND git clone --depth 1 git@github.com:into-cps/hybridCosimulation-framework.git ${HCF_DIR} )
 			execute_process(COMMAND git submodule update --init --recursive WORKING_DIRECTORY ${HCF_DIR})