Skip to content

Commit ca241bd

Browse files
committed
Fix linking to std::atomic
1 parent e444092 commit ca241bd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.23)
2727
# set the project name
2828
project(
2929
libcifpp
30-
VERSION 7.0.5
30+
VERSION 7.0.6
3131
LANGUAGES CXX)
3232

3333
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
@@ -369,7 +369,7 @@ target_include_directories(
369369
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
370370
PRIVATE "${BOOST_REGEX_INCLUDE_DIR}" "${EIGEN_INCLUDE_DIR}")
371371

372-
target_link_libraries(cifpp PUBLIC Threads::Threads ZLIB::ZLIB std::atomic)
372+
target_link_libraries(cifpp PUBLIC Threads::Threads ZLIB::ZLIB $<$<TARGET_EXISTS:std::atomic>:std::atomic>)
373373

374374
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
375375
target_link_options(cifpp PRIVATE -undefined dynamic_lookup)

changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 7.0.6
2+
- Fix linking to std::atomic
3+
14
Version 7.0.5
25
- Fix case where category index was not updated for updated value
36

0 commit comments

Comments
 (0)