From a5ca11a63c47d565a7b21766025a3791218dab00 Mon Sep 17 00:00:00 2001 From: Joscha Schmiedt <joscha@schmiedt.dev> Date: Tue, 15 Oct 2024 20:09:37 +0200 Subject: [PATCH] Remove 'all' target from conan build (#101) Specifying 'all' is not necessary and does not work on Windows. On Windows the target is called BUILD_ALL. --- conanfile.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 7b62c09..c413159 100644 --- a/conanfile.py +++ b/conanfile.py @@ -71,7 +71,7 @@ class LinkAheadConan(ConanFile): cmake = CMake(self) cmake.configure() - cmake.build(target=["all"]) # , "clinkaheadcli", "cxxlinkaheadcli"]) + cmake.build() def package(self): cmake = CMake(self) @@ -96,8 +96,17 @@ class LinkAheadConan(ConanFile): dst=os.path.join(self.package_folder, "lib"), keep_path=False) def package_info(self): - self.cpp_info.libs = ["linkahead", "clinkahead" ] + self.cpp_info.libs = ["linkahead", "clinkahead", "caosdb_grpc" ] self.cpp_info.requires = ["boost::headers", "grpc::grpc", "protobuf::protobuf"] + self.cpp_info.components["linkahead::linkahead"].libs = ["linkahead"] + self.cpp_info.components["linkahead::linkahead"].set_property("cmake_target_name", "linkahead") + + self.cpp_info.components["linkahead::clinkahead"].libs = ["clinkahead"] + self.cpp_info.components["linkahead::clinkahead"].set_property("cmake_target_name", "clinkahead") + + self.cpp_info.components["linkahead::caosdb_grpc"].libs = ["caosdb_grpc"] + self.cpp_info.components["linkahead::caosdb_grpc"].set_property("cmake_target_name", "caosdb_grpc") + def validate(self): if self.settings.os not in ("Linux", "Windows"): -- GitLab