From c62a89434701f0875340366533c368dbbe535ff6 Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Wed, 21 Aug 2024 17:44:06 +0200 Subject: [PATCH] Correct CMake namespace to match documentation. Correct the namespace added to the package in the CMake build-system installation. Instead of jsonfortran- it is now simply jsonfortran. --- packaging/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt index e87a7075fa..bae3647c0b 100644 --- a/packaging/CMakeLists.txt +++ b/packaging/CMakeLists.txt @@ -1,5 +1,5 @@ install ( EXPORT ${PACKAGE_NAME}-targets - NAMESPACE ${PACKAGE_NAME}:: + NAMESPACE ${PROJECT_NAME}:: DESTINATION "${EXPORT_INSTALL_DIR}" ) include ( CMakePackageConfigHelpers ) # Standard CMake module @@ -54,4 +54,4 @@ install(FILES if(MSVC_IDE) INCLUDE_DIRECTORIES("src") SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fpp") -endif() \ No newline at end of file +endif()