未验证 提交 3db46984 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

remove cmake_link_directories in client/cmake (#183)

### What problem were solved in this pull request?

Issue Number: close #61 

Problem:
cmake 3.10 版本不支持 cmake_link_directories 命令,而且miniob也不需要

### What is changed and how it works?
将 cmake_link_directories 相关代码删除,可以正常编译
上级 f907d012
......@@ -8,8 +8,6 @@ TARGET_INCLUDE_DIRECTORIES(obclient PRIVATE . ${PROJECT_SOURCE_DIR}/../deps /usr
# 父cmake 设置的include_directories 和link_directories并不传导到子cmake里面
#INCLUDE_DIRECTORIES(BEFORE ${CMAKE_INSTALL_PREFIX}/include)
TARGET_LINK_DIRECTORIES(obclient PRIVATE /usr/local/lib ${PROJECT_BINARY_DIR}/../../lib)
# stdio.h 必须放在readline/readline.h 前面,因为readline头文件不能直接单独编译
CHECK_INCLUDE_FILES("stdio.h;readline/readline.h" HAVE_READLINE_HEADER)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册