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

fix(conan): connectors build now with the conan-center. (#26)

REFS: MON-7244
parent 2e3b87b1
...@@ -4,6 +4,17 @@ ...@@ -4,6 +4,17 @@
`release date` `release date`
### Bugfixes
*Build*
Build with packages coming from bintray was broken. It is fixed now with
conan-center.
## 20.10.0
`release date`
### Bug fixes ### Bug fixes
*Unit tests* *Unit tests*
......
# Global options. # Global options.
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12)
project(connectors CXX) project(connectors CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
add_definitions("-D_GLIBCXX_USE_CXX11_ABI=1") add_definitions("-D_GLIBCXX_USE_CXX11_ABI=1")
...@@ -47,12 +47,12 @@ add_subdirectory(ssh) ...@@ -47,12 +47,12 @@ add_subdirectory(ssh)
# Testing. # Testing.
option(WITH_TESTING "Build unit tests." OFF) option(WITH_TESTING "Build unit tests." OFF)
if (WITH_TESTING) if (WITH_TESTING)
find_package(gtest REQUIRED) find_package(GTest REQUIRED)
include_directories(${gtest_INCLUDE_DIRS}) include_directories(${GTest_INCLUDE_DIRS})
include_directories(/usr/lib64/perl5/CORE) include_directories(/usr/lib64/perl5/CORE)
link_directories(${gtest_LIB_DIRS}) link_directories(${GTest_LIB_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/perl/inc) include_directories(${CMAKE_SOURCE_DIR}/perl/inc)
include_directories(${CMAKE_SOURCE_DIR}/ssh/inc) include_directories(${CMAKE_SOURCE_DIR}/ssh/inc)
...@@ -88,5 +88,5 @@ if (WITH_TESTING) ...@@ -88,5 +88,5 @@ if (WITH_TESTING)
${CMAKE_SOURCE_DIR}/ssh/test/sessions.cc ${CMAKE_SOURCE_DIR}/ssh/test/sessions.cc
) )
target_link_libraries(ut ${gtest_LIBS} ${CLIB_LIBRARIES} ${PERL_LIBRARIES} ${fmt_LIBS} ${spdlog_LIBS} ${LIBSSH2_LIBRARIES}) target_link_libraries(ut ${GTest_LIBS} ${CLIB_LIBRARIES} ${PERL_LIBRARIES} ${fmt_LIBS} ${spdlog_LIBS} ${LIBSSH2_LIBRARIES})
endif (WITH_TESTING) endif (WITH_TESTING)
[requires] [requires]
gtest/1.8.1@bincrafters/stable gtest/cci.20210126
fmt/7.1.2 fmt/7.1.3
spdlog/1.8.1 spdlog/1.8.5
[generators] [generators]
cmake_paths cmake_paths
......
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