cmake cgal externalproject_add不下载主要依赖关系
下面的CMAKE命令从GitHub下载CGAL: https://github.com/cgal/cgal/cgal/cgal/cgal/cgal/releases/tag/v5。 4.1
它下载了源文件,但不会下载 GMP和MPFR库,适用于Windows 64bits ,如发行结构所示。
问题您将如何将这两个编译的库作为此命令的一部分?
ExternalProject_Add(cgal
GIT_REPOSITORY https://github.com/CGAL/cgal.git
GIT_TAG v5.4.1
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
)
我尝试了@tsyvarev建议,但它安装在CGAL_DEPENDENCIES-PREFIX文件夹中,而不是在CGAL文件夹中:
ExternalProject_Add(cgal_dependencies
URL https://github.com/CGAL/cgal/releases/download/v5.4.1/CGAL-5.4.1-win64-auxiliary-libraries-gmp-mpfr.zip
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
The CMake command below downloads CGAL from github:
https://github.com/CGAL/cgal/releases/tag/v5.4.1
It downloads the source files but it does not download
GMP and MPFR libraries, for Windows 64bits as is seen in release structure.
Question How you would include these two compiled libraries as part of this command?
ExternalProject_Add(cgal
GIT_REPOSITORY https://github.com/CGAL/cgal.git
GIT_TAG v5.4.1
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
)
I tried @Tsyvarev suggestion but it is installed in cgal_dependencies-prefix folder not in cgal folder :
ExternalProject_Add(cgal_dependencies
URL https://github.com/CGAL/cgal/releases/download/v5.4.1/CGAL-5.4.1-win64-auxiliary-libraries-gmp-mpfr.zip
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论