Unverified Commit 9ab53ad6 authored by David Boucher's avatar David Boucher Committed by GitHub
Browse files

fix(various): c++11 flag added to compile on centos7 (#10)

parent ae4631a2
......@@ -19,11 +19,12 @@
# Global options.
cmake_minimum_required(VERSION 2.8)
project("Centreon Perl Connector" C CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PROJECT_SOURCE_DIR "${PROJECT_SOURCE_DIR}/..")
set(INC_DIR "${PROJECT_SOURCE_DIR}/inc/com/centreon/connector/perl")
set(SRC_DIR "${PROJECT_SOURCE_DIR}/src")
set(TEST_DIR "${PROJECT_SOURCE_DIR}/test")
include_directories("${PROJECT_SOURCE_DIR}/inc")
include_directories("${PROJECT_SOURCE_DIR}/inc" "/usr/lib64/perl5/CORE")
# Project version.
set(CONNECTOR_PERL_MAJOR 20)
......
......@@ -102,7 +102,7 @@ pid_t check::execute(
this);
// Register timeout.
std::auto_ptr<timeout> t(new timeout(this, false));
std::unique_ptr<timeout> t(new timeout(this, false));
_timeout = multiplexer::instance().com::centreon::task_manager::add(
t.get(),
tmt - 1,
......@@ -151,7 +151,7 @@ void check::on_timeout(bool final) {
kill(_child, SIGTERM);
// Schedule a final timeout.
std::auto_ptr<timeout> t(new timeout(this, true));
std::unique_ptr<timeout> t(new timeout(this, true));
_timeout = multiplexer::instance().com::centreon::task_manager::add(
t.get(),
time(NULL) + 1,
......
......@@ -19,6 +19,8 @@
# Global options.
cmake_minimum_required(VERSION 2.8)
project("Centreon SSH Connector" CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PROJECT_SOURCE_DIR "${PROJECT_SOURCE_DIR}/..")
set(INC_DIR "${PROJECT_SOURCE_DIR}/inc/com/centreon/connector/ssh")
set(SRC_DIR "${PROJECT_SOURCE_DIR}/src")
......
Supports Markdown
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