当前位置:网站首页>Target of cmake command_ compile_ options
Target of cmake command_ compile_ options
2022-06-24 09:16:00 【Things turn at will】
One 、 Introduce
This command is to add compilation options for a target that needs to be compiled
Command format :
target_compile_options(<target> [BEFORE]
<INTERFACE|PUBLIC|PRIVATE> [items1...]
[<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])target_compile_options Will add options (options) To COMPILE_OPTIONS perhaps INTERFACE_COMPILE_OPOTIONS Target properties ( This means adding compilation options ). These options are used when compiling a given target (<target>) When using , A given goal must have passed add_executable() perhaps add_library() This command is added to the project , And cannot be an alias target .
Two 、 Use
cmake_minimum_required(VERSION 3.10)
project(cmake_gcc_options_try_c C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
add_executable(cmake_gcc_options_try_c main.c)
target_compile_options(cmake_gcc_options_try_c
PUBLIC -W -Wall -Wextra -pedantic -pedantic-errors)Reference resources :
边栏推荐
- 金仓KFS replicator安装(Oracle-KES)
- Depens:*** but it is not going to be installed
- Support vector machine (SVC, nusvc, linearsvc)
- Pytorch读入据集(典型数据集及自定义数据集两种模式)
- jupyter入门常见的几个坑:
- 支持向量机(SVC,NuSVC,LinearSVC)
- Squid代理服务器应用
- 陆奇:我现在最看好这四大技术趋势
- Microblog writing - flow chart - sequence chart - Gantt chart - Mermaid flow chart - good results
- 【LeetCode】415. String addition
猜你喜欢

EasyExcel单sheet页与多sheet页写出

Epidemic situation, unemployment, 2022, we shouted to lie down!

Huawei Router: GRE Technology
![[e325: attention] VIM editing error](/img/58/1207dec27b3df7dde19d03e9195a53.png)
[e325: attention] VIM editing error

Numpy NP in numpy c_ And np r_ Explain in detail

jupyter入门常见的几个坑:

Zero foundation self-study SQL course | having clause

linux(centos7.9)安装部署mysql-cluster 7.6

2022-06-23: given a nonnegative array, select any number to make the maximum cumulative sum a multiple of 7, and return the maximum cumulative sum. N is larger, to the 5th power of 10. From meituan. 3

Some common pitfalls in getting started with jupyter:
随机推荐
Qingcloud based "real estate integration" cloud solution
CF566E-Restoring Map【bitset】
[noi Simulation Competition] send (tree DP)
When programmers are asked if they can repair computers... | daily anecdotes
Zero foundation self-study SQL course | having clause
Solution: the word of jmeter5.5 on the win11 lower interface is very small
216. combined summation III enumeration method
I heard that you are still spending money to buy ppt templates from the Internet?
520. detect capital letters
YOLOX backbone——CSPDarknet的实现
Data middle office: a collection of middle office construction architectures of large domestic factories
From the Huawei weautomate digital robot forum, we can see the "new wisdom of government affairs" in the field of government and enterprises
Cmake命令之target_compile_options
Kaformer personal notes
金仓KFS replicator安装(Oracle-KES)
Pytoch read data set (two modes: typical data set and user-defined data set)
【LeetCode】387. First unique character in string
Dynamic saving and recovery of FPU context under risc-v architecture
Webrtc series - network transmission 5: select the optimal connection switching
Epidemic situation, unemployment, 2022, we shouted to lie down!