Skip to content

Commit e05a430

Browse files
committed
fixed conan issues after upgrade
1 parent 8a0febf commit e05a430

12 files changed

Lines changed: 33 additions & 38 deletions

File tree

conan/conanfile_default.txt.in

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
catch2/3.3.2
44
gtest/1.13.0
55
docopt.cpp/0.6.3
6-
fmt/10.1.0
7-
spdlog/1.11.0
6+
fmt/10.0.0
7+
spdlog/1.12.0
88
sml/1.1.6
99
nlohmann_json/3.11.2
1010
boost/1.81.0
@@ -15,6 +15,3 @@ protobuf/3.21.9
1515
[generators]
1616
CMakeDeps
1717
CMakeToolchain
18-
19-
[options]
20-
gtest:build_gmock=True

fuzz_test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET_LINK_LIBRARIES(
66
fuzz_tester
77
PRIVATE project_options
88
project_warnings
9-
CONAN_PKG::fmt
9+
fmt::fmt
1010
-coverage
1111
-fsanitize=fuzzer,undefined,address)
1212
TARGET_COMPILE_OPTIONS(fuzz_tester PRIVATE -fsanitize=fuzzer,undefined,address)

src/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ IF(CPP_STARTER_USE_CPPZMQ_PROTO)
3131
ENDIF()
3232

3333

34+
FIND_PACKAGE(docopt REQUIRED)
35+
FIND_PACKAGE(spdlog REQUIRED)
36+
FIND_PACKAGE(fmt REQUIRED)
3437
# Generic test that uses conan libs
3538
ADD_EXECUTABLE(intro main.cpp)
3639
TARGET_LINK_LIBRARIES(
3740
intro
3841
PRIVATE project_options
3942
project_warnings
40-
CONAN_PKG::docopt.cpp
41-
CONAN_PKG::fmt
42-
CONAN_PKG::spdlog)
43+
docopt_s
44+
fmt::fmt
45+
spdlog::spdlog)
4346

4447
TARGET_INCLUDE_DIRECTORIES(intro PRIVATE ${CMAKE_BINARY_DIR}/generated)

src/boost.beast/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FIND_PACKAGE(Threads)
2+
FIND_PACKAGE(fmt REQUIRED)
3+
FIND_PACKAGE(nlohmann_json REQUIRED)
4+
FIND_PACKAGE(boost REQUIRED)
25

36
ADD_EXECUTABLE(test_boost_beast main.cpp)
4-
TARGET_LINK_LIBRARIES(test_boost_beast PRIVATE ${CMAKE_THREAD_LIBS_INIT} CONAN_PKG::boost CONAN_PKG::nlohmann_json CONAN_PKG::fmt)
7+
TARGET_LINK_LIBRARIES(test_boost_beast PRIVATE ${CMAKE_THREAD_LIBS_INIT} boost::boost nlohmann_json::nlohmann_json fmt::fmt)

src/crow/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
FIND_PACKAGE(Crow REQUIRED)
2+
FIND_PACKAGE(spdlog REQUIRED)
3+
14
ADD_EXECUTABLE(test_crow main.cpp)
2-
TARGET_LINK_LIBRARIES(test_crow PRIVATE CONAN_PKG::crowcpp-crow CONAN_PKG::spdlog)
5+
TARGET_LINK_LIBRARIES(test_crow PRIVATE Crow::Crow spdlog::spdlog)

src/crow/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* example usage of crow-cpp http://crowcpp.org/ */
2-
#include "crow.h"
2+
#include <crow.h>
33

44
class a : public crow::returnable
55
{

src/protobuf.cppzmq/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ ADD_EXECUTABLE(test_cppzmq_proto_client client/main.cpp ${PROTO_SRCS} ${PROTO_HD
1111
TARGET_INCLUDE_DIRECTORIES(test_cppzmq_proto_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/common)
1212
TARGET_INCLUDE_DIRECTORIES(test_cppzmq_proto_client PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/common)
1313

14-
TARGET_LINK_LIBRARIES(test_cppzmq_proto_server PRIVATE CONAN_PKG::spdlog CONAN_PKG::cppzmq CONAN_PKG::protobuf)
15-
TARGET_LINK_LIBRARIES(test_cppzmq_proto_client PRIVATE CONAN_PKG::spdlog CONAN_PKG::cppzmq CONAN_PKG::protobuf)
14+
TARGET_LINK_LIBRARIES(test_cppzmq_proto_server PRIVATE spdlog::spdlog cppzmq::cppzmq protobuf::protobuf)
15+
TARGET_LINK_LIBRARIES(test_cppzmq_proto_client PRIVATE spdlog::spdlog cppzmq::cppzmq protobuf::protobuf)

src/sml/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
FIND_PACKAGE(sml REQUIRED)
2+
FIND_PACKAGE(spdlog REQUIRED)
3+
14
ADD_EXECUTABLE(test_sml main.cpp logger.h states.h events.h plantumlDump.h actions.h)
2-
TARGET_LINK_LIBRARIES(test_sml PRIVATE CONAN_PKG::sml CONAN_PKG::spdlog)
5+
TARGET_LINK_LIBRARIES(test_sml PRIVATE sml::sml spdlog::spdlog)

test/catch2/CMakeLists.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1+
FIND_PACKAGE(Catch2 REQUIRED)
2+
13
INCLUDE(CTest)
24
INCLUDE(Catch)
35

4-
ADD_LIBRARY(catch_main STATIC catch_main.cpp)
5-
TARGET_LINK_LIBRARIES(catch_main PUBLIC CONAN_PKG::catch2)
6-
TARGET_LINK_LIBRARIES(catch_main PRIVATE project_options)
7-
86
ADD_EXECUTABLE(catch_tests tests.cpp)
9-
TARGET_LINK_LIBRARIES(catch_tests PRIVATE project_warnings project_options catch_main)
7+
TARGET_LINK_LIBRARIES(catch_tests PRIVATE project_warnings project_options Catch2::Catch2WithMain)
108

119
# automatically discover tests that are defined in catch based test files you can modify the unittests. Set TEST_PREFIX
1210
# to whatever you want, or use different for different binaries
@@ -25,7 +23,7 @@ CATCH_DISCOVER_TESTS(
2523

2624
# Add a file containing a set of constexpr tests
2725
ADD_EXECUTABLE(catch_constexpr_tests constexpr_tests.cpp)
28-
TARGET_LINK_LIBRARIES(catch_constexpr_tests PRIVATE project_options project_warnings catch_main)
26+
TARGET_LINK_LIBRARIES(catch_constexpr_tests PRIVATE project_options project_warnings Catch2::Catch2WithMain)
2927

3028
CATCH_DISCOVER_TESTS(
3129
catch_constexpr_tests
@@ -43,7 +41,7 @@ CATCH_DISCOVER_TESTS(
4341
# Disable the constexpr portion of the test, and build again this allows us to have an executable that we can debug when
4442
# things go wrong with the constexpr testing
4543
ADD_EXECUTABLE(catch_relaxed_constexpr_tests constexpr_tests.cpp)
46-
TARGET_LINK_LIBRARIES(catch_relaxed_constexpr_tests PRIVATE project_options project_warnings catch_main)
44+
TARGET_LINK_LIBRARIES(catch_relaxed_constexpr_tests PRIVATE project_options project_warnings Catch2::Catch2WithMain)
4745
TARGET_COMPILE_DEFINITIONS(catch_relaxed_constexpr_tests PRIVATE -DCATCH_CONFIG_RUNTIME_STATIC_REQUIRE)
4846

4947
CATCH_DISCOVER_TESTS(

test/catch2/catch_main.cpp

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)