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;