CLion can't find .h files in /usr/include/mysql
Answered
I've created a new CMake project from legacy code. The code compiles with make from the command line. CLion can't compile because it can't find mysql.h, which is in /usr/include/myql. I've added
include_directories(SYSTEM)
to the CMakeLists.txt file, and restarted CLion but it still fails with this error:
fatal error: mysql.h: No such file or directory
52 | #include <mysql.h>
Please sign in to leave a comment.
Hi Dean!
Is a makefiles project originally? In this case you can try opening it in CLion using compilation database instead of converting to CMake: https://www.jetbrains.com/help/clion/managing-makefile-projects.html