From 17d541085db1c3dc0b90aa2e82e18a5f6fefb186 Mon Sep 17 00:00:00 2001 From: Fs Date: Sat, 12 Oct 2024 18:26:25 +0800 Subject: [PATCH] kill add_subdirectory use Signed-off-by: Fs --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c75cd20..30ac91f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.22) +if (DEFINED PROJECT_NAME) + message(FATAL_ERROR "Please build this project separately. add_subdirectory won't be supported.") +endif() + project(OpenSSL VERSION 1.0.2.21 DESCRIPTION "TLS/SSL and crypto library"