Skip to content

Commit

Permalink
removed support for openmp on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Socrats committed Apr 23, 2021
1 parent 6da0595 commit 12d790b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ endif ()

#include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})

# Support for OpenMP parallelization
find_package(OpenMP)
if (OPENMP_FOUND)
include_directories(SYSTEM ${OPENMP_INCLUDE_DIR})
message(STATUS "OpenMP enabled")
# Support for OpenMP parallelization - not on windows
if (NOT MSVC)
find_package(OpenMP)
if (OPENMP_FOUND)
include_directories(SYSTEM ${OPENMP_INCLUDE_DIR})
message(STATUS "OpenMP enabled")
endif ()
endif ()

# Currently, scikit-build does not support FindPython.
Expand Down

0 comments on commit 12d790b

Please sign in to comment.