Skip to content

Commit

Permalink
refactor(msvc): set openmp flags from cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 17, 2024
1 parent 996ebc4 commit 99ceef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:

vtk-system: [true, false]

include:
- os: windows-latest
cmake_args: '-DCMAKE_CXX_FLAGS="-openmp:llvm"'

exclude:
- os: macos-latest
vtk-system: true
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ option(VIENNAPS_BUILD_TESTS "Build tests" OFF)

set(CMAKE_PLATFORM_NO_VERSIONED_SONAME ${VIENNAPS_BUILD_PYTHON})

if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -openmp:llvm")
endif()

# --------------------------------------------------------------------------------------------------------
# Setup Library
# --------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 99ceef7

Please sign in to comment.