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

fix(conan): build is back (#27)

REFS: MON-7244
parent d83fcf60
......@@ -9,3 +9,9 @@
*Unit tests*
Unit tests have been updated due to changes in the clib.
*Build*
Build with packages coming from bintray was broken. It is fixed now with
conan-center.
# Global options.
cmake_minimum_required(VERSION 2.8.12)
project(connectors CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions("-D_GLIBCXX_USE_CXX11_ABI=0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
add_definitions("-D_GLIBCXX_USE_CXX11_ABI=1")
set(CONNECTOR_MAJOR 20)
set(CONNECTOR_MINOR 04)
......@@ -46,12 +46,12 @@ add_subdirectory(ssh)
# Testing.
option(WITH_TESTING "Build unit tests." OFF)
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)
link_directories(${gtest_LIB_DIRS})
link_directories(${GTest_LIB_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/perl/inc)
include_directories(${CMAKE_SOURCE_DIR}/ssh/inc)
......@@ -87,5 +87,5 @@ if (WITH_TESTING)
${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)
[requires]
gtest/1.8.1@bincrafters/stable
fmt/7.1.2
spdlog/1.8.1
gtest/cci.20210126
fmt/7.1.3
spdlog/1.8.5
[generators]
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