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:
parent
93db70656d
commit
bec58b86a4
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