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
We've been trying out the revamped "workspaces" feature in Conan 1.13. My tests have been done using a project using CMake 3.13 on Windows, with the MSVC toolchain.
We have a project that consists of:
a consumer project C, with dependencies on package P and library A;
a homegrown package P, that also depends on A;
a library A with a conanfile.py that provides an option called shared.
The conanfile.py for C furthermore has the following line:
The workspace feature gives us a nice local editing workflow for C and P. Following the (very clear!) instructions in the documentation, we create a workspace.yml file:
Now, when compiling the super-project generated by conan workspace install, we noticed that the A:shared=True option does not seem to be propagated from C to P anymore, resulting in linker errors. This propagation does work absolutely fine when using the normal "editable package" workflow (conan editable), or the normal workflow (conan install).
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Quick question: Are you getting automatically the conanbuildinfo.cmake in P after doing the workspace install? It is necessary to define the [build_folder] in your layout for this. Doing this, the information of conanbuildinfo.cmake should point to the correct A package (you can see the package ID of A printed in the output of the workspace install command. Please let me know, thanks!
We've been trying out the revamped "workspaces" feature in Conan 1.13. My tests have been done using a project using CMake 3.13 on Windows, with the MSVC toolchain.
We have a project that consists of:
C
, with dependencies on packageP
and libraryA
;P
, that also depends onA
;A
with aconanfile.py
that provides an option calledshared
.The
conanfile.py
forC
furthermore has the following line:The workspace feature gives us a nice local editing workflow for
C
andP
. Following the (very clear!) instructions in the documentation, we create aworkspace.yml
file:Now, when compiling the super-project generated by
conan workspace install
, we noticed that theA:shared=True
option does not seem to be propagated fromC
toP
anymore, resulting in linker errors. This propagation does work absolutely fine when using the normal "editable package" workflow (conan editable
), or the normal workflow (conan install
).Thanks for your help!
The text was updated successfully, but these errors were encountered: