-
Notifications
You must be signed in to change notification settings - Fork 92
Added provision to pass misc flags to cmake #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
f0a6c7e
2c34155
e493d8e
a189fed
078d80d
daa3dcf
87f361a
54f2b0f
4437823
361f95d
687ca13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| * Include C++ include dirs code | ||
| * Ensure compile commands directories do not duplicate |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,12 @@ | |
| :group 'cmake-ide | ||
| :safe #'stringp) | ||
|
|
||
| (defcustom cmake-ide-cmake-command-flags | ||
| nil | ||
| "List of misc flags passed to the cmake invocation." | ||
| :group 'cmake-ide | ||
| :safe #'stringp) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be a list of strings, no?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, I have done something similar, and a string seems fine, you can set it to a bunch of option (like -DCMAKE_BUILD_TYPE=Debug -DOtherUsefullDef"
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my bad - it should be listp |
||
|
|
||
| (defcustom cmake-ide-header-search-other-file | ||
| t | ||
| "Whether or not to search for a corresponding source file for headers when setting flags for them." | ||
|
|
@@ -559,7 +565,9 @@ the object file's name just above." | |
| (when project-dir | ||
| (let ((default-directory cmake-dir)) | ||
| (cmake-ide--message "Running cmake for src path %s in build path %s" project-dir cmake-dir) | ||
| (start-process "cmake" "*cmake*" cmake-ide-cmake-command "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" project-dir)))) | ||
| (apply #'start-process "cmake" "*cmake*" cmake-ide-cmake-command project-dir | ||
| "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" cmake-ide-cmake-command-flags) | ||
| ))) | ||
|
|
||
|
|
||
| (defun cmake-ide--get-build-dir () | ||
|
|
@@ -944,6 +952,7 @@ the object file's name just above." | |
| (cmake-ide--message "Starting rdm server") | ||
| (with-current-buffer buf (start-process "rdm" (current-buffer) | ||
| cmake-ide-rdm-executable | ||
| "-j 2" "-i 40" "-a 10" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just changed the number of jobs to 2 - you can use the previous configuration itself
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just changed the number of jobs to 2 - you can use the previous configuration itself
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, but why? This should be at least configureable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do you think if we add this settings as cmake-ide-rdm-options?
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @myrgy That makes sense. |
||
| "-c" cmake-ide-rdm-rc-path)))))) | ||
|
|
||
| (defun cmake-ide--process-running-p (name) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just test comment