Closed ehargitt closed 8 months ago
Also, I realized that my profile is asking for gcc 9 but CMake is building with gcc 11. Probably not relevant, but something I need to fix.
Edit: Updated the build_log.txt
attachment (forgot to save 🙃)
Hi @ehargitt
Thanks for your report.
The issue seems to be in package_type = "application"
. Your package is not an application. It is a library that you are trying to link with. Please change it to package_type = "shared-library"
(you should use package_type = "library" if you were using the
option = {"shared": ..`` to make it optionally static/shared).
Once that you define it as a library, the headers, libs and targets will be populated correctly, please try and let us know.
Ah, thank you for catching that! I split my app into a separate library, but forgot to change that line.
Good, please keep us posted, if changing that line fixes it, let us know so we could close the issue if solved. Thanks!
Yeah, all good now. Thanks.
Environment details
Steps to reproduce
Sorry ahead of time for all the code snippets. Also, if I'm missing anything, please let me know.
I'm having trouble running
conan create
on my project. When it tries to build the test package, it fails with:I looked at the generated package to see if it was malformed, but it appeared ok:
I noticed in
test_package/build/gcc-9-x86_64-17-release/generators/volconvert-release-x86_64-data.cmake
that the include dirs variable wasn't set, but not sure if this is relevant:I have a project structure that looks like this:
This is my
./conanfile.py
:This is my
./CMakeLists.txt
:And
./test_package/conanfile.py
:And the
./test_package/CMakeLists.txt
:And finally, the
test_package/src/example.cpp
:Logs
Here is the output of
conan create
build_log.txtHere is the entire
test_package
directory with the build folder created by the aforementionedconan create
call. test_package.zip