1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 01:29:53 +03:00

Merge PR #621: ignore temp cmake files, check whether cloned recursively

This commit is contained in:
Davide Beatrici 2018-08-07 17:52:58 +02:00 committed by GitHub
commit 920bc889e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

4
.gitignore vendored
View File

@ -7,5 +7,5 @@ cmake-build-debug/
src/bin/BuiltHamcoreFiles/
tmp/
.gitconfig
CMakeCache.txt
CMakeFiles/

View File

@ -4,4 +4,9 @@ project(SoftEtherVPN LANGUAGES C)
set(default_build_type "Release")
# Check that submodules are present only if source was downloaded with git
if(EXISTS "${SoftEtherVPN_SOURCE_DIR}/.git" AND NOT EXISTS "${SoftEtherVPN_SOURCE_DIR}/src/Mayaqua/cpu_features/CMakeLists.txt")
message (FATAL_ERROR "Submodules are not initialized. Run\n\tgit submodule update --init --recursive")
endif()
add_subdirectory(src)