Commit c0b1add4 authored by Andreas Schuh's avatar Andreas Schuh

fix: Import with GFLAGS_USE_TARGET_NAMESPACE=ON

parent f1ea012a
...@@ -562,7 +562,7 @@ if (INSTALL_HEADERS) ...@@ -562,7 +562,7 @@ if (INSTALL_HEADERS)
) )
install ( install (
EXPORT ${EXPORT_NAME} EXPORT ${EXPORT_NAME}
FILE ${EXPORT_NAME}-nonamespace.cmake FILE ${PACKAGE_NAME}-nonamespace-targets.cmake
DESTINATION ${CONFIG_INSTALL_DIR} DESTINATION ${CONFIG_INSTALL_DIR}
) )
if (UNIX) if (UNIX)
...@@ -585,7 +585,7 @@ export ( ...@@ -585,7 +585,7 @@ export (
) )
export ( export (
TARGETS ${TARGETS} TARGETS ${TARGETS}
FILE "${PROJECT_BINARY_DIR}/${EXPORT_NAME}-nonamespace.cmake" FILE "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-nonamespace-targets.cmake"
) )
if (REGISTER_BUILD_DIR) if (REGISTER_BUILD_DIR)
export (PACKAGE ${PACKAGE_NAME}) export (PACKAGE ${PACKAGE_NAME})
......
...@@ -14,7 +14,7 @@ if (@PACKAGE_PREFIX@_USE_TARGET_NAMESPACE) ...@@ -14,7 +14,7 @@ if (@PACKAGE_PREFIX@_USE_TARGET_NAMESPACE)
include ("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_NAME@.cmake") include ("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_NAME@.cmake")
set (@PACKAGE_PREFIX@_TARGET_NAMESPACE @PACKAGE_NAME@) set (@PACKAGE_PREFIX@_TARGET_NAMESPACE @PACKAGE_NAME@)
else () else ()
include ("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_NAME@-nonamespace.cmake") include ("${CMAKE_CURRENT_LIST_DIR}/@PACKAGE_NAME@-nonamespace-targets.cmake")
set (@PACKAGE_PREFIX@_TARGET_NAMESPACE) set (@PACKAGE_PREFIX@_TARGET_NAMESPACE)
endif () endif ()
if (@PACKAGE_PREFIX@_TARGET_NAMESPACE) if (@PACKAGE_PREFIX@_TARGET_NAMESPACE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment