From c0226cbaf3cbec18b06212db307c2ec1fdb04ec8 Mon Sep 17 00:00:00 2001 From: mpromonet Date: Sat, 2 Mar 2019 13:55:58 +0000 Subject: [PATCH] fix submodule initialization --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d01f87b..89c3908 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,12 +68,10 @@ if (LOG4CPP_INCLUDE_DIR) endif (LOG4CPP_INCLUDE_DIR) # v4l2wrapper -if (NOT EXISTS v4l2wrapper) - EXEC_PROGRAM("git submodule init && git submodule update") -endif() +EXEC_PROGRAM("git submodule update --init") aux_source_directory(v4l2wrapper/src LIBSRC_FILES) include_directories("v4l2wrapper/inc") -add_library(v4l2wrapper ${LIBSRC_FILES}) +add_library(v4l2wrapper STATIC ${LIBSRC_FILES}) target_link_libraries (${PROJECT_NAME} v4l2wrapper) # live555