[cmake] Checking CMAKE_CURRENT_LIST_DIR