Replicate "add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH" option with CMake on terminal
-
Hi!
I'm building a complex project with many dependencies on MacOS.
If I check the option:
"add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH"
In QT Creator, my application runs.
But, if I turn the option off, I get the same error as if I just build and run without Qt Creator, CMake alone on the terminal - (no special options, just cmake --build).
How can I replicate what Qt Creator does with these two env variables, without using QT creator?
Or in other words, what path exactly is this "build library search path"?
Thank you!
-
Since these are environment variables, simply set them on the command line.
-
@Christian-Ehrlicher I could, but they are massive, and generated traversing the deps folder recursively as I've realised, it's not "just" the root.
Anyway, I'll look into fixing the underlying issue which likely is some rpaths that need fixing - thanks!