set ( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
-if ( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.2 )
- message ( FATAL_ERROR "Require at least gcc-5.2" )
-endif( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.2 )
+if ( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.5 )
+ message ( FATAL_ERROR "Require at least gcc-6.5" )
+endif( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.5 )
option ( BUILD_STG "Build Stargazer server." OFF )
option ( BUILD_SGCONF "Build SGConf client." OFF )
endif ( BUILD_LIB_IA )
if ( BUILD_LIB_IBPP )
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast -Wno-useless-cast")
add_library ( ibpp STATIC ibpp/all_in_one.cpp )
target_include_directories ( ibpp PUBLIC ibpp/include )
endif ( BUILD_LIB_IBPP )