Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please make compile process fail if cmake version is less than 3.3.0 #2831

Closed
lcy-seso opened this issue Jul 12, 2017 · 4 comments
Closed

please make compile process fail if cmake version is less than 3.3.0 #2831

lcy-seso opened this issue Jul 12, 2017 · 4 comments
Assignees

Comments

@lcy-seso
Copy link
Contributor

lcy-seso commented Jul 12, 2017


  • 另外,将 cmake 升级到 3.9 之后,find boost库异常,输出如下,我还在检查,有信息会继续更新:
CMake Error in /home/caoying/opt/cmake/share/cmake-3.9/Modules/FindBoost.cmake:
  cmake_policy PUSH without matching POP
Call Stack (most recent call first):
  CMakeLists.txt:31 (find_package)


CMake Deprecation Warning at /home/caoying/opt/cmake/share/cmake-3.9/Modules/UseSWIG.cmake:226 (message):
  SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
Call Stack (most recent call first):
  paddle/api/CMakeLists.txt:56 (SWIG_ADD_MODULE)
@lcy-seso lcy-seso changed the title please make compile process fail if cmake version is less 3.3.0 please make compile process fail if cmake version is less than 3.3.0 Jul 12, 2017
@lcy-seso
Copy link
Contributor Author

cmake 3.8 版本可以成功执行生成MakeFile。考虑到 3.9 暂时还没有release,3.9 版本 find Boost库异常的问题,暂时不再继续寻找原因。

@lcy-seso
Copy link
Contributor Author

补充:cmake 换成 3.8 还是同样的错误,和版本低于 3.3 无关。

@Xreki
Copy link
Contributor

Xreki commented Jul 13, 2017

我也补充一下,SWIG_ADD_MODULE 这个问题以前有issue [#2220 ]提出过,应该是高版本cmake的接口函数名改了。

@lcy-seso
Copy link
Contributor Author

This bug has been fixed, so I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants