From b6af944d5376a0997e3742179b204eb4c3d76b04 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 29 Jan 2025 09:23:09 -0600 Subject: [PATCH] Remove debug code and exclude windows --- CMakeFilters.cmake | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CMakeFilters.cmake b/CMakeFilters.cmake index 1c0ae1f10fe..d4a2a702a45 100644 --- a/CMakeFilters.cmake +++ b/CMakeFilters.cmake @@ -120,12 +120,13 @@ if (HDF5_ENABLE_ZLIB_SUPPORT) endif () set (H5_ZLIB_INCLUDE_DIR_GEN ${ZLIB_INCLUDE_DIR}) set (H5_ZLIB_INCLUDE_DIRS ${H5_ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR}) - # The FindZLIB.cmake module does not set an OUTPUT_NAME - # on the target. The target returned is: ZLIB::ZLIB -# get_filename_component (libname ${ZLIB_LIBRARIES} NAME_WLE) -# string (REGEX REPLACE "^lib" "" libname ${libname}) - message (VERBOSE "Filter HDF5_ZLIB name:$") - set_target_properties (ZLIB::ZLIB PROPERTIES OUTPUT_NAME $) + if (NOT WIN32) #windows has a list of names + # The FindZLIB.cmake module does not set an OUTPUT_NAME + # on the target. The target returned is: ZLIB::ZLIB + get_filename_component (libname ${ZLIB_LIBRARIES} NAME_WLE) + string (REGEX REPLACE "^lib" "" libname ${libname}) + set_target_properties (ZLIB::ZLIB PROPERTIES OUTPUT_NAME ${libname}) + endif () set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ZLIB::ZLIB) endif () else ()