Avoid warning "current scope has no parent"
This commit is contained in:
parent
5ebbd0eb3f
commit
7bcc66be0d
|
@ -530,9 +530,12 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
|
||||||
COMPONENT cmake-config)
|
COMPONENT cmake-config)
|
||||||
|
|
||||||
# allow checking for the export in subsequent sibling projects/directories
|
# allow checking for the export in subsequent sibling projects/directories
|
||||||
|
get_directory_property(HAS_PARENT_DIRECTORY PARENT_DIRECTORY)
|
||||||
|
if (HAS_PARENT_DIRECTORY)
|
||||||
set("EXPORT_${NAMESPACE_PREFIX}${META_PROJECT_NAME}${META_CONFIG_SUFFIX}"
|
set("EXPORT_${NAMESPACE_PREFIX}${META_PROJECT_NAME}${META_CONFIG_SUFFIX}"
|
||||||
ON
|
ON
|
||||||
PARENT_SCOPE)
|
PARENT_SCOPE)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# add install target for header files
|
# add install target for header files
|
||||||
if (NOT META_IS_PLUGIN)
|
if (NOT META_IS_PLUGIN)
|
||||||
|
|
Loading…
Reference in New Issue