-
Notifications
You must be signed in to change notification settings - Fork 98
Set CMake options #303
Comments
I might be misunderstanding here, but what I do if I want different CMake options that are not default is creating the build directory contents manually. For instance, let's say I want to test my project with the rm -r build # if it already exist
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS=-Weverything .. Then when I open the project in juCi++, it will not touch these settings, but only run cmake again to create the needed There are other options as well that can automate this too, for instance: rm -r build # if it already exist
CXXFLAGS=-Weverything juci . |
Actually, this is now my favorite: CXXFLAGS=-Weverything juci . Then choose Recreate Build in the Project menu:) edit: using the environment variable CXXFLAGS has the advantage of working for Meson builds as well. |
I just realised that you can also add flags in edit: this is only with respect to libclang processing though, will not affect compilation. |
It would be nice to have some interface to set CMake options and defines on a per-project basis. I know now we have the
cmake.command
config variable that one could set options such as defines or a build system, but that seems to be on a global level.What I was thinking is to have something like the
cmake
portion of the config file per project, possibly with added options generated by something like the output ofcmake -LAH
to get project options. I'm not sure of what the best way to do this would be though as I'm not exactly a fan of IDE config files being tied to a project.If this is something that would be wanted and we can agree on a way to do it, I can try to get the changes in a PR in a couple weeks when I have some spare time.
The text was updated successfully, but these errors were encountered: