Git submodule commands automatic on cmake call
@@ -4,6 +4,10 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
-execute_process(COMMAND "git submodule init && git submodule update"
+execute_process(
+ COMMAND git submodule init
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+execute_process(
+ COMMAND git submodule update
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_subdirectory(lib)
