Next question would be Cmake integration. Anyone knows if this works “out of the box” with Codium? I could also try the free version of Clion perhaps? Would prefer not to go to plain editor like vim, but have proper build integration.
A setup that’s more manual than CLion, but easier/more feature-rich than vim would be to use Visual Studio Code. With the right extensions (the cmake extension, for starters…), this should handle cmake projects properly with only a little setup, and project search and indexing works as good or better than CLion.
And since you’re in a setup headspace, you might consider installing ninja and using this for builds (requires adding the -GNinja flag to your cmake command). It makes incremental building a lot more pleasant. This setup integrates well with VSCode.
Ok, exciting, I installed the CMake Tools extension in Codium. This then brings up cmake detection. I try ‘Build [all]’ via Clang 9 as the ‘kit’, but apparently something is missing:
[cmake] Compiling with Ableton Link support
[cmake] CMake Error at lang/CMakeLists.txt:258 (include):
[cmake] include could not find load file:
[cmake]
[cmake] ../external_libraries/link/AbletonLinkConfig.cmake
[cmake]
[cmake]
How would I deactivate that in Codium? Or can I install that thing?
[cms-driver] Error during CMake configure:
Error: Configuration failed.
at CMakeServerClient._onMessage (/home/hhrutz/.vscode-oss/extensions/ms-vscode.cmake-tools-1.5.3/dist/main.js:22653:33)
at CMakeServerClient._onMoreData (/home/hhrutz/.vscode-oss/extensions/ms-vscode.cmake-tools-1.5.3/dist/main.js:22626:18)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
which doesn’t look good. Is the extension bad?
I think I’m not understanding the ‘CMake Cache Editor’. It resets the ableton thing when I run ‘Configure all projects’. So there must be a different way to set cmake options?