Clion调试远程代码,但debug按钮为灰色。

错误提示:

/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /tmp/tmp.QzBG8x0lcK
CMake Error at CMakeLists.txt:8 (message):
  Git submodules not initialized, execute:

    git submodule update --init


-- Configuring incomplete, errors occurred!

[Previous CMake output restored: 2021/5/12 19:54]

在本地和远程都执行了 这句话,仍然无用

而且debug按钮为灰色,配置Edit Configuration时也没有自动导入target和Executable文件,手动配置后仍提示nothing to run on。感觉是CMakeList文件没识别出来,该怎么办

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^