1

In CLion (e.g. 2021.3), you can "Edit Configurations..." for project targets, and set environment variables (such as LD_LIBRARY_PATH). But - how can I append such variables for all targets in a project? (That is, other than manually adding them for each target, or setting the environment variable before running CLion, both of which I want to avoid)?

Alex Reinking
  • 16,724
  • 5
  • 52
  • 86
einpoklum
  • 118,144
  • 57
  • 340
  • 684
  • I'd rather build with correct rpath than mess with `LD_LIBRARY_PATH` – Osyotr Mar 27 '22 at 12:47
  • @Genjutsu: Actually, I agree, but somehow, CMake doesn't ensure the correct rpath when you have it detect a CUDA version that's not the system standard. – einpoklum Mar 27 '22 at 12:51

0 Answers0