Skip to content

Commit

Permalink
Fixed Openmp llvm Flag Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh1998 committed Sep 17, 2024
1 parent 8125579 commit ce61d81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/build_module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ function(build_module)
target_link_libraries(${G_NAME} PRIVATE ${dep})
elseif(OpenMP_C_FOUND)
target_link_libraries(${G_NAME} PRIVATE OpenMP::OpenMP_C)
if(MSVC)
# for min/max reduction with MSVC
target_compile_options(${G_NAME} PRIVATE -openmp:llvm)
endif()
endif()
endforeach()

Expand Down

0 comments on commit ce61d81

Please sign in to comment.