From e86e947cb2930baa87a845041f438a62f709a9f3 Mon Sep 17 00:00:00 2001 From: Mark Mossberg Date: Tue, 3 Dec 2019 17:09:24 -0500 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67c1a0f..8abaf59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ if(NOT TARGET uninstall) endif() include(CMakePackageConfigHelpers) -set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets") +set(TARGETS_EXPORT_NAME "${CMAKE_PROJECT_NAME}Targets") configure_package_config_file( "Config.cmake.in" "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}Config.cmake"