Clion cannot find headers even though "cmake already found it"

My CMakeLists.txt

find_path(BRPC_INCLUDE_PATH NAMES brpc/server.h)
find_library(BRPC_LIB NAMES libbrpc.a)

if ((NOT BRPC_INCLUDE_PATH) OR (NOT BRPC_LIB))
message(FATAL_ERROR "brpc not found")
else()
message(STATUS "Found brpc in " ${BRPC_INCLUDE_PATH})
endif()

include_directories(${BRPC_INCLUDE_PATH})

The output of cmake:

Found brpc in /usr/local/include

I added `#include <brpc/server.h>` to my source file and got the following error:

'brpc/server.h' file not found

P.S.

$ ls /usr/local/include/brpc/server.h
/usr/local/include/brpc/server.h
0

请先登录再写评论。