当前位置:网站首页>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
上。
边栏推荐
- SQL classification, DQL (Data Query Language), and corresponding SQL query statement demonstration
- Warzone: 3 (Exogen) vulnhub walkthrough
- hackmyvm-random walkthrough
- [campo/random-user-agent] Randomly fake your User-Agent
- (3)Thinkphp6数据库
- (6) Design of student information management system
- Phonebook
- 阿里云MySQL5.7安装以及部分主要问题(总和)
- hackmyvm: again walkthrough
- Solve the problem of uni - app packaged H5 website to download image
猜你喜欢
DVWA drone installation tutorial
CTF入门笔记之SQL注入
CTF入门之md5
GreenOptic: 1 vulnhub walkthrough
New usage of string variable parsing in PHP8.2
GreenOptic: 1 vulnhub walkthrough
动力:2 vulnhub预排
[league/climate] A robust command-line function manipulation library
(2) Thinkphp6 template engine ** tag
Smart Tips for Frida Scripting in Kali Environment
随机推荐
(1)Thinkphp6入门、安装视图、模板渲染、变量赋值
3. PHP data types, constants, strings and operators
PHP deserialization vulnerability
Phpstudy安装Thinkphp6(问题+解决)
web安全之目录遍历
What will be new in PHP8.2?
c语言用栈实现计算中缀表达式
Batch replace file fonts, Simplified -> Traditional
SQL: DDL, DML, DQL, DCL corresponding introduction and demonstration
[sebastian/diff] A historical change extension library for comparing two texts
hackmyvm: again walkthrough
SQL classification, DQL (Data Query Language), and corresponding SQL query statement demonstration
Introduction to PHP (self-study notes)
After the mailbox of the Pagoda Post Office is successfully set up, it can be sent but not received.
WeChat applet development video loading: [Rendering layer network layer error] Failed to load media
Several interesting ways to open PHP: from basic to perverted
hackmyvm: controller walkthrough
(2) 顺序结构、对象的布尔值、选择结构、循环结构、列表、字典、元组、集合
CTF入门笔记之SQL注入
Cookie is used to collect the admin privileges CTF foundation problem