mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Merge PR #621: ignore temp cmake files, check whether cloned recursively
This commit is contained in:
commit
920bc889e7
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,5 +7,5 @@ cmake-build-debug/
|
|||||||
src/bin/BuiltHamcoreFiles/
|
src/bin/BuiltHamcoreFiles/
|
||||||
tmp/
|
tmp/
|
||||||
.gitconfig
|
.gitconfig
|
||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles/
|
||||||
|
@ -4,4 +4,9 @@ project(SoftEtherVPN LANGUAGES C)
|
|||||||
|
|
||||||
set(default_build_type "Release")
|
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)
|
add_subdirectory(src)
|
||||||
|
Loading…
Reference in New Issue
Block a user