1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 01:19:52 +03:00

ignore temp cmake files

check whether cloned recursively during cmake build
This commit is contained in:
Ilya Shipitsin 2018-08-07 20:38:06 +05:00
parent 93db70656d
commit bec58b86a4
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)