Fix CMake pkg lib dependencies with mchecksum
@@ -76,11 +76,13 @@ if(MERCURY_USE_CHECKSUMS)
include(${MCHECKSUM_BINARY_DIR}/mchecksum-config.cmake)
set(MERCURY_EXPORTED_LIBS mchecksum ${MERCURY_EXPORTED_LIBS})
get_target_property(MCHECKSUM_EXT_LIB_DEPENDENCIES mchecksum INTERFACE_LINK_LIBRARIES)
+ if(MCHECKSUM_EXT_LIB_DEPENDENCIES)
set(MERCURY_EXT_PKG_LIB_DEPENDENCIES
${MERCURY_EXT_PKG_LIB_DEPENDENCIES}
${MCHECKSUM_EXT_LIB_DEPENDENCIES}
)
endif()
+ endif()
set(MERCURY_CHECKSUM_DEFAULT CRC32 CACHE STRING "Choose the type of checksum used by default.")
# Set the possible values of checksum type for cmake-gui
set_property(CACHE MERCURY_CHECKSUM_DEFAULT PROPERTY STRINGS "CRC16" "CRC32" "CRC64")
