Skip to content

Commit 4b6fefb

Browse files
committed
Add openmp support for Visual Studio builds.
1 parent c9169e5 commit 4b6fefb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if (WIN32)
8282
if (MSVC)
8383
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
8484

85-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
85+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp")
8686
endif()
8787

8888
set(LIB_Ws2_32 Ws2_32)

cppan.yml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ root_project: pvt.cppan.demo.google.tesseract
2121
common_settings:
2222
c++: 11
2323

24+
options:
25+
any:
26+
compiler_options:
27+
msvc:
28+
private:
29+
- /openmp
30+
2431
projects:
2532
libtesseract:
2633
type: lib

0 commit comments

Comments
 (0)