I have a pre-compiled dependency library A which has only include/ and lib/
A was built with system library B which was installed in /usr/local/include/B/ and /usr/local/lib/B
But on my building system doesn't have library B and do not allow me to modify the system (no privilege).
I downloaded B and put B_include in local project C's include directory and B_lib in C's lib directory.
I tried in CMakeList.txt of local project:
include_directories(
    C_INCLUDE_DIR
    B_INCLUDE_DIR
)
link_directories(
    C_LIB_DIR
    B_LIB_DIR
)
But when compile C against library A, A's include can not find the local header file B_INCLUDE_DIR. Does anyone know how to force CMake to find the local library file other than directly navigate into system include and lib directories?
To sum up, can I tell CMake to force a pre-compiled library to use local include file?
