Attempting to publish a tree
Fork of nrf51-sdk by
source/supress-warnings.cmake@0:bc2961fa1ef0, 2016-04-06 (annotated)
- Committer:
- Jonathan Austin
- Date:
- Wed Apr 06 23:55:04 2016 +0100
- Revision:
- 0:bc2961fa1ef0
Synchronized with git rev 90647e3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jonathan Austin |
0:bc2961fa1ef0 | 1 | # Copyright 2015 ARM Limited |
Jonathan Austin |
0:bc2961fa1ef0 | 2 | # |
Jonathan Austin |
0:bc2961fa1ef0 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
Jonathan Austin |
0:bc2961fa1ef0 | 4 | # you may not use this file except in compliance with the License. |
Jonathan Austin |
0:bc2961fa1ef0 | 5 | # You may obtain a copy of the License at |
Jonathan Austin |
0:bc2961fa1ef0 | 6 | # |
Jonathan Austin |
0:bc2961fa1ef0 | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
Jonathan Austin |
0:bc2961fa1ef0 | 8 | # |
Jonathan Austin |
0:bc2961fa1ef0 | 9 | # Unless required by applicable law or agreed to in writing, software |
Jonathan Austin |
0:bc2961fa1ef0 | 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
Jonathan Austin |
0:bc2961fa1ef0 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Jonathan Austin |
0:bc2961fa1ef0 | 12 | # See the License for the specific language governing permissions and |
Jonathan Austin |
0:bc2961fa1ef0 | 13 | # limitations under the License. |
Jonathan Austin |
0:bc2961fa1ef0 | 14 | |
Jonathan Austin |
0:bc2961fa1ef0 | 15 | message("suppressing warnings from nrf51-sdk") |
Jonathan Austin |
0:bc2961fa1ef0 | 16 | |
Jonathan Austin |
0:bc2961fa1ef0 | 17 | if(CMAKE_C_COMPILER_ID STREQUAL "GNU") |
Jonathan Austin |
0:bc2961fa1ef0 | 18 | set_target_properties(nrf51-sdk |
Jonathan Austin |
0:bc2961fa1ef0 | 19 | PROPERTIES COMPILE_FLAGS "-Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-missing-field-initializers" |
Jonathan Austin |
0:bc2961fa1ef0 | 20 | ) |
Jonathan Austin |
0:bc2961fa1ef0 | 21 | endif() |