From 79fb2dc31249311dd6d43d20cf2ba9232456b59f Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 23 Mar 2023 13:54:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20PROJECT=5FIS=5FTOP=5FLEVEL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/backports/TopLevelProject.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MyxCMake/backports/TopLevelProject.cmake b/MyxCMake/backports/TopLevelProject.cmake index 7dbccec..953758f 100644 --- a/MyxCMake/backports/TopLevelProject.cmake +++ b/MyxCMake/backports/TopLevelProject.cmake @@ -3,7 +3,9 @@ include_guard(GLOBAL) if(${CMAKE_VERSION} VERSION_LESS 3.21) get_property(__parent_directory DIRECTORY PROPERTY PARENT_DIRECTORY) if(NOT __parent_directory) - set(PROJECT_IS_TOP_LEVEL true) + set(PROJECT_IS_TOP_LEVEL TRUE) + else() + set(PROJECT_IS_TOP_LEVEL FALSE) endif() unset(__parent_directory) endif()