CMake/CPack变量之CPACK_SET_DESTDIR
来源:互联网 发布:冰箱什么牌子静音 知乎 编辑:程序博客网 时间:2024/06/06 02:44
Boolean toggle to make CPack use DESTDIR mechanism when packaging.
DESTDIR means DESTination DIRectory. It is commonly used by makefile users in order to install software at non-default location. It is a basic relocation mechanism that should not be used on Windows (see CMAKE_INSTALL_PREFIX documentation). It is usually invoked like this:
make DESTDIR=/home/john install
which will install the concerned software using the installation prefix, e.g. “/usr/local” prepended with the DESTDIR value which finally gives “/home/john/usr/local”. When preparing a package, CPack first installs the items to be packaged in a local (to the build tree) directory by using the same DESTDIR mechanism. Nevertheless, if CPACK_SET_DESTDIR is set then CPack will set DESTDIR before doing the local install. The most noticeable difference is that without CPACK_SET_DESTDIR, CPack uses CPACK_PACKAGING_INSTALL_PREFIX as a prefix whereas with CPACK_SET_DESTDIR set, CPack will use CMAKE_INSTALL_PREFIX as a prefix.
Manually setting CPACK_SET_DESTDIR may help (or simply be necessary) if some install rules uses absolute DESTINATION (see CMake INSTALL command). However, starting with CPack/CMake 2.8.3 RPM and DEB installers tries to handle DESTDIR automatically so that it is seldom necessary for the user to set it.
- CMake/CPack变量之CPACK_SET_DESTDIR
- CMake/CPack变量之CPACK_PACKAGING_INSTALL_PREFIX
- CMake/CPack变量之CMAKE_INSTALL_PREFIX
- cmake变量
- CMake变量
- cmake 入门编程之打印信息或者变量
- cmake中的一些变量
- cmake中的一些变量
- cmake变量 试验
- CMake 预定义变量
- CPACK 介绍网站
- 使用CPACK制作安装包
- CMake常见变量——Project和CMake相关信息
- 【使用CMake组织C++工程】2:CMake 常用命令和变量
- CMake命令之function
- CMake命令之execute_process
- CMake命令之list
- CMake命令之function
- 浏览器对象
- 在centos7/ubuntu15.04 上通过bosh-lite 搭建单机环境Cloud Foundry
- IE6中CSS方法实现PNG图片透明
- poj 3254 Corn Fields
- Serivce通知Activity更新UI方法总结
- CMake/CPack变量之CPACK_SET_DESTDIR
- JAVA当中的I/O
- cocos2dx 3.x win7+VS2012开发环境搭建及HelloWorld
- 为Bootstrap模态对话框添加拖拽移动功能
- 快速排序
- volatile 保证变量内存中值的同步
- linux下搭建vsftp,并使自动作业上传文件到ftp
- Unity 自动导出 AndroidStudio 项目
- phpcms后台登录验证码删除