diff --git a/CMakeLists.txt b/CMakeLists.txt index a725f897..821e1039 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,8 +119,6 @@ target_compile_features(hictk_project_options INTERFACE "cxx_std_${CMAKE_CXX_STA target_compile_definitions(hictk_project_options INTERFACE FMT_HEADER_ONLY FMT_ENFORCE_COMPILE_STRING) # Tweak spdlog target_compile_definitions(hictk_project_options INTERFACE SPDLOG_FMT_EXTERNAL) -#Tweak xxHash -target_compile_definitions(hictk_project_options INTERFACE XXH_INLINE_ALL) if(WIN32) target_compile_definitions(hictk_project_options INTERFACE NOMINMAX _CRT_SECURE_NO_WARNINGS) diff --git a/cmake/modules/FindxxHash.cmake b/cmake/modules/FindxxHash.cmake deleted file mode 100644 index 5829494b..00000000 --- a/cmake/modules/FindxxHash.cmake +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright (C) 2023 Roberto Rossini -# -# SPDX-License-Identifier: MIT - -find_package(PkgConfig) -pkg_check_modules(PC_xxHash QUIET xxHash) - -find_path( - xxHash_INCLUDE_DIR - NAMES xxhash.h - PATHS ${PC_xxHash_INCLUDE_DIRS} - PATH_SUFFIXES include) -find_library( - xxHash_LIBRARY - NAMES xxhash - PATHS ${PC_xxHash_LIBRARY_DIRS} - PATH_SUFFIXES lib) - -set(xxHash_VERSION ${PC_xxHash_VERSION}) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args( - xxHash - FOUND_VAR xxHash_FOUND - REQUIRED_VARS xxHash_LIBRARY xxHash_INCLUDE_DIR - VERSION_VAR xxHash_VERSION) - -if(xxHash_FOUND) - set(xxHash_LIBRARIES ${xxHash_LIBRARY}) - set(xxHash_INCLUDE_DIRS ${xxHash_INCLUDE_DIR}) - set(xxHash_DEFINITIONS ${PC_xxHash_CFLAGS_OTHER}) -endif() - -if(xxHash_FOUND AND NOT TARGET xxHash::xxhash) - add_library(xxHash::xxhash UNKNOWN IMPORTED) - set_target_properties( - xxHash::xxhash - PROPERTIES IMPORTED_LOCATION "${xxHash_LIBRARY}" - INTERFACE_COMPILE_OPTIONS "${PC_xxHash_CFLAGS_OTHER}" - INTERFACE_INCLUDE_DIRECTORIES "${xxHash_INCLUDE_DIR}") -endif() - -mark_as_advanced(xxHash_INCLUDE_DIR xxHash_LIBRARY) - -set(xxHash_VERSION_STRING ${xxHash_VERSION})