ArcticDB icon indicating copy to clipboard operation
ArcticDB copied to clipboard

CMake cannot generate proper project unless executed within python environment

Open vasil-pashov opened this issue 1 year ago • 0 comments

Describe the bug

CMake is generating a correct build files only when executed from a terminal where a python environment was activated. If CMake GUI is used to generate the projects (and the GUI is not started from a terminal using a python environment) the generated project cannot be built. It complains that it cannot dynamically link to boost. I suppose boost is not special case but the first library it tries to link against probably all other libs will fail the same way. This is most likely to some additional configurations to the PATH variable made by selecting a python env.

The C++ builds should not depend python environment or we should list all known dependencies

Steps/Code to Reproduce

  1. Start CMake GUI exe and generate the project selecting a preset e.g. windows-vs-2022
  2. Try to build the generated project

Expected Results

The project builds

OS, Python Version and ArcticDB Version

Tested on Windows with preset windows-vs-2022

Backend storage used

No response

Additional Context

No response

vasil-pashov avatar Jan 15 '24 10:01 vasil-pashov