Skip to content

How to get environment populated from VirtualBuildEnv #702

@tkielan

Description

@tkielan

When using CMake Conan integration, I do have VirtualBuildEnv specified in the recipe as generator.
All the environment shell scripts eg. conan*.sh files are created when conan_cmake_install is executed.
If something is added to the PATH because it is a tool used for building something in CMake, I don't know how it will get passed to execute_process().

Example, I have a flatbuffer recipe.
Our CMake will execute flatc to turn .fbs into .hpp
Flat Compiler has to be on the PATH and it is in VirtualBuildEnv.
CMake doe not see it on the path when executing execute_process.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions