From ca241bd8f2e9b8b95045976b4c02c5698794b749 Mon Sep 17 00:00:00 2001 From: "Maarten L. Hekkelman" Date: Mon, 23 Sep 2024 09:14:04 +0200 Subject: [PATCH] Fix linking to std::atomic --- CMakeLists.txt | 4 ++-- changelog | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4aed0f..ff7ae92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.23) # set the project name project( libcifpp - VERSION 7.0.5 + VERSION 7.0.6 LANGUAGES CXX) list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") @@ -369,7 +369,7 @@ target_include_directories( "$" PRIVATE "${BOOST_REGEX_INCLUDE_DIR}" "${EIGEN_INCLUDE_DIR}") -target_link_libraries(cifpp PUBLIC Threads::Threads ZLIB::ZLIB std::atomic) +target_link_libraries(cifpp PUBLIC Threads::Threads ZLIB::ZLIB $<$:std::atomic>) if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") target_link_options(cifpp PRIVATE -undefined dynamic_lookup) diff --git a/changelog b/changelog index e89d14d..1eb95f5 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,6 @@ +Version 7.0.6 +- Fix linking to std::atomic + Version 7.0.5 - Fix case where category index was not updated for updated value