Skip to content

Commit d8a57e8

Browse files
committed
Suppress MSVC linker warnings in C++ 20 module mode
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
1 parent 1704625 commit d8a57e8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmake/HPX_AddComponent.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ function(add_hpx_component name)
322322
endif()
323323
endif()
324324

325+
if(HPX_WITH_CXX_MODULES AND MSVC)
326+
# ignore warnings about exported symbols being imported
327+
set(${name}_LINK_FLAGS "${${name}_LINK_FLAGS} /ignore:4217 /ignore:4286")
328+
endif()
329+
325330
hpx_setup_target(
326331
${name}_component
327332
TYPE COMPONENT

0 commit comments

Comments
 (0)