diff --git a/CMakeLists.txt b/CMakeLists.txt index dffed0aac..eeb5cce1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,8 @@ if(BUILD_NDPI) ExternalProject_Add( libnDPI SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libnDPI - CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/libnDPI/autogen.sh + CONFIGURE_COMMAND git submodule update --init && + ${CMAKE_CURRENT_SOURCE_DIR}/libnDPI/autogen.sh --prefix=${CMAKE_CURRENT_BINARY_DIR}/libnDPI ${BUILD_NDPI_CONFIGURE_OPTS} BUILD_COMMAND make diff --git a/README.md b/README.md index a554638e8..2b2e034d8 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,6 @@ cmake .. -DSTATIC_LIBNDPI_INSTALLDIR=[path/to/your/libnDPI/installdir] -DNDPI_WI Or if this is all too much for you, let CMake do it for you: ```shell -git submodule update --init mkdir build cd build cmake .. -DBUILD_NDPI=ON