Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
4e95f7b8
Unverified
Commit
4e95f7b8
authored
Jul 16, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored find atomic
parent
f85b6d94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
CMakeLists.txt
+2
-1
include/cif++/condition.hpp
+2
-2
No files found.
CMakeLists.txt
View file @
4e95f7b8
...
...
@@ -32,6 +32,7 @@ project(
list
(
PREPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
include
(
FindAtomic
)
include
(
CheckFunctionExists
)
include
(
CheckIncludeFiles
)
include
(
CheckLibraryExists
)
...
...
@@ -366,7 +367,7 @@ target_include_directories(
"$<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>"
PRIVATE
"
${
BOOST_REGEX_INCLUDE_DIR
}
"
"
${
EIGEN_INCLUDE_DIR
}
"
)
target_link_libraries
(
cifpp PUBLIC Threads::Threads ZLIB::ZLIB
)
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
)
...
...
include/cif++/condition.hpp
View file @
4e95f7b8
...
...
@@ -1292,9 +1292,9 @@ template <typename T>
condition
operator
!=
(
const
key
&
key
,
const
std
::
optional
<
T
>
&
v
)
{
if
(
v
.
has_value
())
return
condition
(
new
detail
::
not_condition_impl
(
condition
{
new
detail
::
key_equals_condition_impl
({
key
.
m_item_name
,
*
v
})}
));
return
condition
(
new
detail
::
not_condition_impl
(
condition
(
new
detail
::
key_equals_condition_impl
({
key
.
m_item_name
,
*
v
}))
));
else
return
condition
(
new
detail
::
not_condition_impl
(
condition
{
new
detail
::
key_is_empty_condition_impl
(
key
.
m_item_name
)}
));
return
condition
(
new
detail
::
not_condition_impl
(
condition
(
new
detail
::
key_is_empty_condition_impl
(
key
.
m_item_name
))
));
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment