Skip to content

Commit

Permalink
Add openmp support for Visual Studio builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 23, 2018
1 parent c9169e5 commit 4b6fefb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (WIN32)
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp")
endif()

set(LIB_Ws2_32 Ws2_32)
Expand Down
7 changes: 7 additions & 0 deletions cppan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ root_project: pvt.cppan.demo.google.tesseract
common_settings:
c++: 11

options:
any:
compiler_options:
msvc:
private:
- /openmp

projects:
libtesseract:
type: lib
Expand Down

0 comments on commit 4b6fefb

Please sign in to comment.