cmake: Use CMAKE_PROJECT_NAME instead of PROJECT_NAME

This is consistent with other usages of the file.
PROJECT_NAME is only useful if there are subprojects, and there
aren't any here.
This commit is contained in:
Mark Mossberg
2019-12-03 17:09:24 -05:00
parent ff61650517
commit e86e947cb2

View File

@@ -121,7 +121,7 @@ if(NOT TARGET uninstall)
endif() endif()
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets") set(TARGETS_EXPORT_NAME "${CMAKE_PROJECT_NAME}Targets")
configure_package_config_file( configure_package_config_file(
"Config.cmake.in" "Config.cmake.in"
"${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}Config.cmake" "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}Config.cmake"