Fix debug build in C++11 case

This commit is contained in:
Pavel Odintsov 2015-10-06 18:59:54 +02:00
parent 969644d072
commit 99507e5b84

@ -29,6 +29,7 @@ set (FASTNETMON_VERSION_MINOR 1)
if (ENABLE_GOBGP_SUPPORT) if (ENABLE_GOBGP_SUPPORT)
# We could not compile gRPC without C++ 11 # We could not compile gRPC without C++ 11
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
endif() endif()
@ -39,6 +40,7 @@ if (ENABLE_BUILD_IN_CPP_11_CUSTOM_ENVIRONMENT)
# It's really nice part of this custom build process :) # It's really nice part of this custom build process :)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
# Disable warning from Boost when compiling with gcc 5.2 # Disable warning from Boost when compiling with gcc 5.2
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-deprecated-declarations") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-deprecated-declarations")