From d5c951f45ed768570df65e29ba9ab9eef2369f37 Mon Sep 17 00:00:00 2001 From: Matei David Date: Wed, 3 Feb 2016 23:50:26 -0500 Subject: [PATCH] add c++98 compile and link flag --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dade1e3d..8e115356 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,7 @@ set( LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/lib" ) # define compiler flags for all code set( CMAKE_BUILD_TYPE Release ) +set( CMAKE_CXX_FLAGS_RELEASE "-std=c++98 ${CMAKE_CXX_FLAGS_RELEASE}" ) add_definitions( -Wall -D_FILE_OFFSET_BITS=64 ) # -----------------------------------------------