In CLion, header only library: file “does not belong to any project target, code insight features might not work properly”

Little background I was having the same problem, albeit the project was not header-only, nevertheless, the open files from inc folder were throwing the aforementioned warning, even though the CMake file clearly marked that folder to be include_directory. *.hpp files do not belong to ${SOURCE} include_directories(“${PROJECT_SOURCE_DIR}/inc/”) add_subdirectory(src) add_executable(${EXECUTABLE_NAME} main.cpp ${SOURCE}) Since this is a perfectly … Read more

Using local makefile for CLion instead of CMake

Update: If you are using CLion 2020.2, then it already supports Makefiles. If you are using an older version, read on. Even though currently only CMake is supported, you can instruct CMake to call make with your custom Makefile. Edit your CMakeLists.txt adding one of these two commands: add_custom_target add_custom_command When you tell CLion to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)