当前位置:网站首页>cmake安装到指定目录
cmake安装到指定目录
2022-08-02 03:25:00 【PenguinLeee】
默认情况下我们在拿到一个库的源码(包含CmakeLists.txt),并在$REPO/build
里执行:
cmake ..
make install
时,cmake
会将库安装到/usr/local/include
和/usr/local/lib
上。此即所谓的“局部安装”。
如果想要全局安装的话,需要执行:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make all install
就会将库安装在/usr/include
和/usr/lib
上。
边栏推荐
- (2) Sequence structures, Boolean values of objects, selection structures, loop structures, lists, dictionaries, tuples, sets
- Using PHPMailer send mail
- (8) requests, os, sys, re, _thread
- How to log in to Alibaba Cloud server using the admin account
- (6) 学生信息管理系统设计
- Scrapy爬虫遇见重定向301/302问题解决方法
- (5) Modules and packages, encoding formats, file operations, directory operations
- 16.JS事件, 字符串和运算符
- hackmyvm: kitty walkthrough
- Several interesting ways to open PHP: from basic to perverted
猜你喜欢
一个网络安全小白鼠的学习之路—nmap高级用法之脚本使用
(1) print()函数、转义字符、二进制与字符编码 、变量、数据类型、input()函数、运算符
hackmyvm-bunny预排
PHP8.2 version release administrator and release plan
How to determine the direction based on two coordinate points on the map
Smart Tips for Frida Scripting in Kali Environment
The CTF introductory notes of SQL injection
web渗透必玩的靶场——DVWA靶场 1(centos8.2+phpstudy安装环境)
DarkHole: 2 vulnhub walkthrough
PHP Foundation March Press Announcement Released
随机推荐
(8) requests、os、sys、re、_thread
文件上传漏洞
Alibaba Cloud MySQL 5.7 installation and some major problems (total)
Pycharm packages the project as an exe file
Turn trendsoft/capital amount of Chinese capital library
c语言用栈实现计算中缀表达式
一个网络安全小白鼠的学习之路—nmap高级用法之脚本使用
hackmyvm: may walkthrough
hackmyvm: again walkthrough
OPENSSL基本实验以及OPENSSL详解
Masashi: 1 vulnhub walkthrough
(7) superficial "crawlers" process (concept + practice)
hackmyvm: juggling walkthrough
Stable and easy-to-use short connection generation platform, supporting API batch generation
[league/climate] A robust command-line function manipulation library
攻防世界—MISC 新手区1-12
Advanced Operations on Arrays
12.什么是JS
hackmyvm-hopper walkthrough
Thread Pool (Introduction and Use of Thread Pool)