mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
ignore temp cmake files
check whether cloned recursively during cmake build
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user