How to add include directories without changing cmakeCommonLists?

Answered

I am working on a big project and I can't push any include directory I want to it.

If I change cmakeCommomLists in order to add include directories, it means that every time I will push to my project I'll need to look that I haven't pushed that makefile changes and as we all developers know - that is a room for many mistakes.

that's why I am looking for a solution that will allow me to add include directories to the PROJECT himself (by settings/build_configuration/.. or something like that) and not by adding any lines to any makefile.

Is this possible in Clion?

2
3 comments

Hello!

The only option to add include directories to a CMake project in CLion is to use include_directories() in the CMakeLists.txt - https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#inc-dirs.

0
Avatar
Permanently deleted user

Do you think this feature will be available in the future?..

0

No such plans for the upcoming release, sorry.

0

Please sign in to leave a comment.