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 a simple project that has the following structure
-dplib
src
files.cpp
include
headerfiles.hpp
CMakeLists.txt
conanfile.py
test_project
The project is to create a library and publish the project to my local cache so another project of mine can import it and use it. When I issue the conan create the include folder is missing in the published cache so the test_project fails. When I look at the directory:
--- ~/.conan2/p/b/dplibb273b250fbe5f/p/
-coaninfo.txt
-conanmanifest.txt
-lib
-libdplib.a
How do I get the include folder to be added to the cache? By the way this is on Ubuntu 24
Joe
My CMakeFile: --------------------------------------------------------------------------------------------------------
This wouldn't be a Conan question, but a CMake question.
If using cmake.install() it means that the CMake should have the correct instructions to install headers, but your CMakeLists.txt is failing to do so.
A solution would be something like defining the headers of the target:
Thank you so much. I'm clearly having a hard time knowing the boundaries between conan and cmake. Thank you for the clarification!
Yeah, if you don't already know some C++ building and CMake, trying to learn both things at the same time can be a bit too much, so it is usually better to do step by step, first learn CMake, then Conan (even if they are not strictly tied, as Conan works with other build systems too).
FIND_PACKAGE(Boost REQUIRED)
that kind of syntax is now a bit outdated, the modern way would be lowercase find_package() (same for all other CMake functions)
What is your question?
Hello,
I have a simple project that has the following structure
The project is to create a library and publish the project to my local cache so another project of mine can import it and use it. When I issue the conan create the include folder is missing in the published cache so the test_project fails. When I look at the directory:
--- ~/.conan2/p/b/dplibb273b250fbe5f/p/
-coaninfo.txt
-conanmanifest.txt
-lib
-libdplib.a
How do I get the include folder to be added to the cache? By the way this is on Ubuntu 24
Joe
My CMakeFile: --------------------------------------------------------------------------------------------------------
My conanfile.py: --------------------------------------------------------------------------------------------------------
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: