Skip to content

Commit

Permalink
Enable /experimental:c11atomics MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Mar 28, 2024
1 parent 11578dc commit d3e795f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions QPALM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ target_compile_definitions(qpalm-headers INTERFACE
QPALM_VERSION_MINOR=${QPALM_VERSION_MINOR}
QPALM_VERSION_PATCH=${QPALM_VERSION_PATCH})
target_compile_features(qpalm-headers INTERFACE c_std_11)
if (MSVC)
target_compile_options(qpalm-headers INTERFACE /experimental:c11atomics)
endif()
target_link_libraries(qpalm-headers INTERFACE LADEL::ladel)

add_library(qpalm-obj OBJECT
Expand Down

0 comments on commit d3e795f

Please sign in to comment.