Reputation: 132260
I'm new to CLion; and have imported a CMakeLists.txt
project. To properly configure, I need to set a certain environment variable.
Now, I know I can do this by setting that variable before invoking CLion; but assuming that I haven't, or that I want to change things at runtime - can I do so? If I can, then how? I still don't know my way around the IDE.
Upvotes: 1
Views: 5809
Reputation: 922
According to FAQ
Q: How to pass environment variables and parameters to CMake in CLion?
A: The best way is to use Preferences/Settings | Build, Execution, Deployment | CMake dialog.
So: File > Settings > Build, Execution, Deployment > CMake
There's Environment field in the dialog.
Upvotes: 3
Reputation: 132260
Do the following:
-DCMAKE_BUILD _TYPE
and so on)That should do it.
Upvotes: 0