mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-22 09:53:03 +08:00
Merge pull request #3752 from OgreTransporter/fix-issue-3751
Check OpenMP target in CMake (issue #3751)
This commit is contained in:
commit
1e095ad33f
@ -292,7 +292,9 @@ if(OPENMP_BUILD)
|
||||
if(OpenMP_FOUND)
|
||||
message(">> OpenMP_FOUND ${OpenMP_FOUND} ${OpenMP_VERSION}")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
add_library(OpenMP::OpenMP_CXX IMPORTED INTERFACE)
|
||||
if (NOT TARGET OpenMP::OpenMP_CXX)
|
||||
add_library(OpenMP::OpenMP_CXX IMPORTED INTERFACE)
|
||||
endif()
|
||||
endif()
|
||||
# https://stackoverflow.com/questions/12399422
|
||||
# how-to-set-linker-flags-for-openmp-in-cmakes-try-compile-function
|
||||
|
Loading…
Reference in New Issue
Block a user