Commit e0871f48 authored by Alexander A. Maly's avatar Alexander A. Maly

Cleaning warnings for boost

Turned off gnu compiler extensions.
parent e3113e04
......@@ -44,8 +44,11 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
set(CMAKE_INSTALL_RPATH "")
set(CMAKE_CXX_EXTENSIONS "OFF")
set(CMAKE_CXX_STANDARD "11")
# Compile flags
set(KUMIR2_CXXFLAGS "-fno-exceptions -std=c++0x -fPIC -Wall -Wno-deprecated-declarations")
set(KUMIR2_CXXFLAGS "-fno-exceptions -fPIC -Wall")
set(KUMIR2_CXXFLAGS_Release "-O2 -UNDEBUG")
set(KUMIR2_CXXFLAGS_RelWithDebInfo "-O2 -g -UNDEBUG -UQT_NO_DEBUG")
set(KUMIR2_CXXFLAGS_Debug "-g -O1")
......
......@@ -45,7 +45,7 @@ if(NOT WIN32)
# 1. -fexceptions: Exceptions is widely used by Boost
# 2. -std=c++03: Due to bug in boost 1.49 (Ticket #6785)
# set(CXXFLAGS "-fexceptions -std=c++03")
set(CXXFLAGS "-DBOOST_EXCEPTION_DISABLE")
set(CXXFLAGS "-DBOOST_EXCEPTION_DISABLE -Wall -Wno-deprecated-declarations -Wno-parentheses -Wno-unused-local-typedefs")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment