Skip to content

Commit

Permalink
Don't remove old library name (to prevent the introduction of a break…
Browse files Browse the repository at this point in the history
…ing change). Create an alias for the new documented library name
  • Loading branch information
EmilyBourne committed Aug 26, 2024
1 parent c62a894 commit 10352a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/pkg/jsonfortran-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ include ( "${@PACKAGE_NAME@_CONFIG_INSTALL_DIR}/@[email protected]" )

# Make the module files available via include
set_and_check ( @PROJECT_NAME@_INCLUDE_DIRS "@PACKAGE_INSTALL_MOD_DIR@" )

add_library(@PROJECT_NAME@::jsonfortran ALIAS @PACKAGE_NAME@::jsonfortran)
add_library(@PROJECT_NAME@::jsonfortran-static ALIAS @PACKAGE_NAME@::jsonfortran-static)
4 changes: 2 additions & 2 deletions packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
install ( EXPORT ${PACKAGE_NAME}-targets
NAMESPACE ${PROJECT_NAME}::
NAMESPACE ${PACKAGE_NAME}::
DESTINATION "${EXPORT_INSTALL_DIR}" )

include ( CMakePackageConfigHelpers ) # Standard CMake module
Expand Down Expand Up @@ -54,4 +54,4 @@ install(FILES
if(MSVC_IDE)
INCLUDE_DIRECTORIES("src")
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fpp")
endif()
endif()

0 comments on commit 10352a8

Please sign in to comment.