From 99ceef7c9bbe9f22dcf41f7c25878d83ffe58461 Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 17 Mar 2024 02:31:23 +0100 Subject: [PATCH] refactor(msvc): set openmp flags from cmake --- .github/workflows/build.yml | 4 ---- CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5bc8ce20..dd01fd22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 275ecb08..5e696e8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 # --------------------------------------------------------------------------------------------------------