From 996a7f75d30197bdf5e318c4e6c5dd41d32aacc9 Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Mon, 30 Jan 2023 13:08:52 +0100 Subject: [PATCH] make `OpenMP::OpenMP_CXX` a `PUBLIC` dependency of libhamming - ensures templated functions using openmp pragmas are parallelized - resolves #86 also - pybind11 -> 2.10.3 - bump hammingdist version --- CMakeLists.txt | 2 +- ext/pybind11 | 2 +- setup.py | 2 +- src/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94cbcfc..c9d9f27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) project( hammingdist - VERSION 0.18.0 + VERSION 0.19.0 LANGUAGES CXX) include(CTest) diff --git a/ext/pybind11 b/ext/pybind11 index aa304c9..0bd8896 160000 --- a/ext/pybind11 +++ b/ext/pybind11 @@ -1 +1 @@ -Subproject commit aa304c9c7d725ffb9d10af08a3b34cb372307020 +Subproject commit 0bd8896a4010f2d91b2340570c24fa08606ec406 diff --git a/setup.py b/setup.py index d9f4765..8178a6c 100644 --- a/setup.py +++ b/setup.py @@ -93,7 +93,7 @@ def build_extension(self, ext): setup( name="hammingdist", - version="0.18.0", + version="0.19.0", author="Dominic Kempf, Liam Keegan", author_email="ssc@iwr.uni-heidelberg.de", description="A fast tool to calculate Hamming distances", diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b7d4a21..1589583 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,7 +5,7 @@ target_link_libraries(hamming PUBLIC CpuFeature::cpu_features) if(HAMMING_WITH_OPENMP) find_package(OpenMP REQUIRED) target_compile_definitions(hamming PUBLIC HAMMING_WITH_OPENMP) - target_link_libraries(hamming PRIVATE OpenMP::OpenMP_CXX) + target_link_libraries(hamming PUBLIC OpenMP::OpenMP_CXX) endif() # compile optional SIMD code as separate libraries which can be used at runtime