Исправлена установка переменной PROJECT_IS_TOP_LEVEL
This commit is contained in:
		@@ -3,7 +3,9 @@ include_guard(GLOBAL)
 | 
				
			|||||||
if(${CMAKE_VERSION} VERSION_LESS 3.21)
 | 
					if(${CMAKE_VERSION} VERSION_LESS 3.21)
 | 
				
			||||||
  get_property(__parent_directory DIRECTORY PROPERTY PARENT_DIRECTORY)
 | 
					  get_property(__parent_directory DIRECTORY PROPERTY PARENT_DIRECTORY)
 | 
				
			||||||
  if(NOT __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()
 | 
					  endif()
 | 
				
			||||||
  unset(__parent_directory)
 | 
					  unset(__parent_directory)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user