From dfd84462956ef9b3c30662c9ba4ad37176b41b41 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 13 May 2020 00:08:30 +0200 Subject: [PATCH] Try to make this crap work when .git is a directory --- cmake/Modules/shared_git_project.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmake/Modules/shared_git_project.cmake b/cmake/Modules/shared_git_project.cmake index d494861..a8fe780 100644 --- a/cmake/Modules/shared_git_project.cmake +++ b/cmake/Modules/shared_git_project.cmake @@ -17,9 +17,6 @@ function (add_shared_git_project SUBMODULE_PATH) if (NOT EXISTS "${submod_path}/.git") message(FATAL_ERROR ".git not found in \"${submod_path}\". Not a git submodule?") endif() - if (IS_DIRECTORY "${submod_path}/.git") - message(FATAL_ERROR "\"${submod_path}.git\" is a directory, not a file as expected. Not a git submodule?") - endif() get_filename_component(proj_name_orig "${submod_path}" NAME) if ("${proj_name_orig}" STREQUAL "")