mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
bec58b86a4
check whether cloned recursively during cmake build
13 lines
451 B
CMake
13 lines
451 B
CMake
cmake_minimum_required(VERSION 3.4.3)
|
|
|
|
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)
|