From 3eb5c881fe345e58f771bedfdf5c81c3c39505c3 Mon Sep 17 00:00:00 2001 From: Benitoite Date: Mon, 10 Feb 2020 07:10:46 -0800 Subject: [PATCH] Detect .git instead of CMakeLists.txt in submods --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9ac6c7..008bd55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,10 +70,10 @@ endif() # Download submodules if needed -if(NOT EXISTS ${CMAKE_SOURCE_DIR}/src/configparser/CMakeLists.txt OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/cppgtfs/CMakeLists.txt OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/xml/pfxml.h) - execute_process( - COMMAND git submodule update --init --recursive - ) +if(NOT EXISTS ${CMAKE_SOURCE_DIR}/src/configparser/.git OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/cppgtfs/.git OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/xml/.git) + execute_process( + COMMAND git submodule update --init --recursive + ) endif() add_subdirectory(src)