mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
cmake: fix cygwin GNU c++ build; fixes #2379
This commit is contained in:
parent
9ac988b27a
commit
ff5f59cf24
@ -115,7 +115,10 @@ include(CheckCXXCompilerFlag)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
# cygwin gnu c++ needs to use -std=gnu++17 instead of -std=c++17
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
endif ()
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
|
Loading…
Reference in New Issue
Block a user