Skip to content
Snippets Groups Projects
Commit a5ca11a6 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

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.
parent 625204c2
No related branches found
No related tags found
2 merge requests!61Release 0.3.0,!58Fix conan create on Windows
......@@ -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"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment