Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon-connectors
Commits
eedafefd
Unverified
Commit
eedafefd
authored
May 11, 2021
by
David Boucher
Committed by
GitHub
May 11, 2021
Browse files
fix(conan): build is back (#27)
REFS: MON-7244
parent
d83fcf60
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
eedafefd
...
...
@@ -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.
CMakeLists.txt
View file @
eedafefd
# Global options.
cmake_minimum_required
(
VERSION 2.8.12
)
project
(
connectors CXX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++1
1
"
)
add_definitions
(
"-D_GLIBCXX_USE_CXX11_ABI=
0
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++1
4
"
)
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
(
gt
est REQUIRED
)
find_package
(
GT
est REQUIRED
)
include_directories
(
${
gt
est_INCLUDE_DIRS
}
)
include_directories
(
${
GT
est_INCLUDE_DIRS
}
)
include_directories
(
/usr/lib64/perl5/CORE
)
link_directories
(
${
gt
est_LIB_DIRS
}
)
link_directories
(
${
GT
est_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
${
gt
est_LIBS
}
${
CLIB_LIBRARIES
}
${
PERL_LIBRARIES
}
${
fmt_LIBS
}
${
spdlog_LIBS
}
${
LIBSSH2_LIBRARIES
}
)
target_link_libraries
(
ut
${
GT
est_LIBS
}
${
CLIB_LIBRARIES
}
${
PERL_LIBRARIES
}
${
fmt_LIBS
}
${
spdlog_LIBS
}
${
LIBSSH2_LIBRARIES
}
)
endif
(
WITH_TESTING
)
conanfile.txt
View file @
eedafefd
[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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment