You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created only header package using the following conanfile.py:
class TypesmConan(ConanFile):
name = "types"
version = "1.0"
# No settings/options are necessary, this is header only
exports_sources = "include/*"
no_copy_source = True
def package(self):
# This will also copy the "include" folder
copy(self, "*.h", self.source_folder, self.package_folder)
def package_info(self):
# For header-only packages, libdirs and bindirs are not used
# so it's recommended to set those as empty.
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []
How I can force conan to build custom name inside folder automatically during only header package creation as from example2? My custom folder have c/h files with their conanfile.py and CMakeLists.txt that suppose to build c/h files using only header package? The inside folder name is different than from example2 and it is not triggering the build...When I am changing the name to test_package and use the special requirment as self.requires(self.tested_reference_str), than automatic build is triggered but I dont want to use it only for tests but and a specific folder name but custom project of custom name...
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
How I can force conan to build custom name inside folder automatically during only header package creation as from example2? My custom folder have c/h files with their conanfile.py and CMakeLists.txt that suppose to build c/h files using only header package? The inside folder name is different than from example2 and it is not triggering the build...When I am changing the name to test_package and use the special requirment as self.requires(self.tested_reference_str), than automatic build is triggered but I dont want to use it only for tests but and a specific folder name but custom project of custom name...
Sorry, I am afraid that I don't understand this question. My custom folder have c/h files with their conanfile.py and CMakeLists.txt that suppose to build c/h files using only header package?. But if your library contains .c files, then it is not a header-library, it would be regular library that needs to be compiled as either static or shared.
The inside folder name is different than from example2 and it is not triggering the build...When I am changing the name to test_package and use the special requirment as self.requires(self.tested_reference_str)
I am afraid that I don't understand this either.
The best way to clarify these kind of issues, would be to put a full minimal reproducible example in a repo and specify the exact commands you are using, with the output logs. It can be a fork of the examples2 repo, with your modifications for your question, or an independent repo just with the files you want.
What is your question?
I have created only header package using the following conanfile.py:
class TypesmConan(ConanFile):
name = "types"
version = "1.0"
# No settings/options are necessary, this is header only
exports_sources = "include/*"
no_copy_source = True
How I can force conan to build custom name inside folder automatically during only header package creation as from example2? My custom folder have c/h files with their conanfile.py and CMakeLists.txt that suppose to build c/h files using only header package? The inside folder name is different than from example2 and it is not triggering the build...When I am changing the name to test_package and use the special requirment as self.requires(self.tested_reference_str), than automatic build is triggered but I dont want to use it only for tests but and a specific folder name but custom project of custom name...
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: