Skip to content

Commit

Permalink
Try to run CI on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Feb 19, 2024
1 parent 5da96fc commit 2d6c8ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
include:
- os: ubuntu-20.04
- os: macos-11
- os: windows-2019
steps:
- uses: actions/checkout@v3

Expand Down
10 changes: 8 additions & 2 deletions mops/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,14 @@ check_cxx_compiler_flag("-Wunknown-pragmas" COMPILER_SUPPORTS_WPRAGMAS)
if (MOPS_OPENMP)
find_package(OpenMP)
if(OpenMP_CXX_FOUND)
message(STATUS "OpenMP is enabled")
target_link_libraries(mops PUBLIC OpenMP::OpenMP_CXX)
if (MSVC)
# MSVC only supports an old version of OpenMP, let's disable it
# until we change the code to work with this version
message(STATUS "OpenMP was found, but is disabled on MSVC")
else()
message(STATUS "OpenMP is enabled")
target_link_libraries(mops PUBLIC OpenMP::OpenMP_CXX)
endif()
else()
message(WARNING "Could not find OpenMP")
if(COMPILER_SUPPORTS_WPRAGMAS)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ repository = "https://github.com/lab-cosmo/mops"
[build-system]
requires = [
"setuptools >=68",
"cmake <3.28", # this should be changed once cmake 3.28.1 is on PyPI
"cmake",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
zip-safe = false

[tool.setuptools.packages.find]
where = ["python/mops/src/"]
where = ["python/mops/src"]

### ======================================================================== ###
[tool.pytest.ini_options]
Expand Down

0 comments on commit 2d6c8ed

Please sign in to comment.