How to configure custom build targets
Answered
Hi
I was using custom target to build my scons project locally (windows) for a long time and cmake custom targets within cmakelists.txt to do the same for the remote (RHEL) . Just found that CLion now supports Custom build targets for remote??
there are a few questions about, also I'd appreciated if someone share the topic of the documentation where cann be the answers on my questions.
- In custom build I can select my remote toolchain? does it really mean that clion now supports custom builds for the remote ? if - yes, then next questions.
- "Build" and "Clean" allow to select configured external tools, but looks like external tools can be configured for local only?
- What is a dependency between "external tools" in custom builds and "external tools" in common settings?
Please sign in to leave a comment.
Hello!
So far it's not possible to select remote external tools as a Custom Build Target - https://youtrack.jetbrains.com/issue/CPP-19910.
And also here is a request about supporting remote mode for compilation database projects - https://youtrack.jetbrains.com/issue/CPP-16202. Is should be helpful in your scenario.
>What is a dependency between "external tools" in custom builds and "external tools" in common settings?
Unlike regular external tools configured in Settings / Preferences | Tools | External Tools, custom target tools are stored per project, and they are not accessible via Tools | External Tools on the main menu. See https://www.jetbrains.com/help/clion/custom-build-targets.html#customtarget-compdb.