Skip to content

Commit 84bd3f1

Browse files
committed
Propagate user changes to dependency paths/filenames
1 parent 13a2336 commit 84bd3f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeInstallation.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ if (HDF5_BUILD_JAVA)
112112
set (HDF5_JARHDF5_JAR_NAME "jarhdf5-${HDF5_PACKAGE_VERSION}.jar")
113113
set (HDF5_JAVAHDF5_JAR_NAME "javahdf5-${HDF5_PACKAGE_VERSION}.jar")
114114
endif ()
115-
# slf4j JAR names (these are dependencies, version shouldn't change with SNAPSHOT)
116-
set (HDF5_SLF4J_API_JAR_NAME "slf4j-api-2.0.16.jar")
117-
set (HDF5_SLF4J_NOP_JAR_NAME "slf4j-nop-2.0.16.jar")
115+
# slf4j JAR names derived from configured paths so overrides are reflected in the exported config
116+
get_filename_component (HDF5_SLF4J_API_JAR_NAME ${HDF5_JAVA_LOGGING_JAR} NAME)
117+
get_filename_component (HDF5_SLF4J_NOP_JAR_NAME ${HDF5_JAVA_LOGGING_NOP_JAR} NAME)
118118
endif ()
119119

120120
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)