From fa4d69e17032189ab827c89b37d706e17357555a Mon Sep 17 00:00:00 2001 From: Brian Chan Date: Thu, 19 Dec 2019 16:19:44 -0800 Subject: [PATCH] Patch from https://github.com/ruediger/VobSub2SRT/issues/73 --- CMakeLists.txt | 1 + CMakeModules/FindTesseract.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1954cb..6cb9a6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ project(vobsub2srt) cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules) +set(CMAKE_CXX_STANDARD 11) if(NOT CMAKE_BUILD_TYPE) set( diff --git a/CMakeModules/FindTesseract.cmake b/CMakeModules/FindTesseract.cmake index 4b15d74..3b0de74 100644 --- a/CMakeModules/FindTesseract.cmake +++ b/CMakeModules/FindTesseract.cmake @@ -44,6 +44,7 @@ if(TESSERACT_DATA_PATH) endif() set(CMAKE_REQUIRED_INCLUDES ${Tesseract_INCLUDE_DIR}) +set(CMAKE_REQUIRED_FLAGS "-std=c++11") check_cxx_source_compiles( "#include \"tesseract/baseapi.h\" using namespace tesseract;