Skip to content

Commit b2171a0

Browse files
committed
Don't remove old library name (to prevent the introduction of a breaking change). Create an alias for the new documented library name
1 parent c62a894 commit b2171a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmake/pkg/jsonfortran-config.cmake.in

+3
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ include ( "${@PACKAGE_NAME@_CONFIG_INSTALL_DIR}/@[email protected]" )
1414

1515
# Make the module files available via include
1616
set_and_check ( @PROJECT_NAME@_INCLUDE_DIRS "@PACKAGE_INSTALL_MOD_DIR@" )
17+
18+
add_library(@PROJECT_NAME@::jsonfortran ALIAS @PACKAGE_NAME@::jsonfortran)
19+
add_library(@PROJECT_NAME@::jsonfortran-static ALIAS @PACKAGE_NAME@::jsonfortran-static)

packaging/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
install ( EXPORT ${PACKAGE_NAME}-targets
2-
NAMESPACE ${PROJECT_NAME}::
2+
NAMESPACE ${PACKAGE_NAME}::
33
DESTINATION "${EXPORT_INSTALL_DIR}" )
44

55
include ( CMakePackageConfigHelpers ) # Standard CMake module

0 commit comments

Comments
 (0)