Skip to content

Commit ff77433

Browse files
arthurlArthur Lee
authored andcommitted
{Personal} C/C++ IDE config
1 parent c1e91a0 commit ff77433

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lisp/init-local.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
(default-directory "/ssh:3sec.arthur.li:")) ;; TODO: prompt for user and host
1515
(shell)))
1616

17+
;; Include paths for cmake-ide
18+
;; see: https://langui.sh/2015/07/24/osx-clang-include-lib-search-paths/
19+
(setq cmake-ide-flags-c '("-I/usr/local/include"
20+
"-I/Library/Developer/CommandLineTools/usr/lib/clang/7.3.0/include"
21+
"-I/Library/Developer/CommandLineTools/usr/include"
22+
"-I/usr/include"
23+
"-DNDEBUG")
24+
cmake-ide-flags-c++ (cons "-I/Library/Developer/CommandLineTools/usr/include/c++/v1"
25+
cmake-ide-flags-c))
26+
1727
;; Eglot
1828
(with-eval-after-load 'eglot
1929
(setq eglot-confirm-server-initiated-edits nil))

0 commit comments

Comments
 (0)