Axel Le Bourhis | 28676c8 | 2024-01-25 17:17:34 +0100 | [diff] [blame] | 1 | # |
Axel Le Bourhis | a578c14 | 2024-09-17 18:56:00 +0200 | [diff] [blame] | 2 | # Copyright (c) 2024 Project CHIP Authors |
Axel Le Bourhis | 28676c8 | 2024-01-25 17:17:34 +0100 | [diff] [blame] | 3 | # |
Axel Le Bourhis | a578c14 | 2024-09-17 18:56:00 +0200 | [diff] [blame] | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
Axel Le Bourhis | 28676c8 | 2024-01-25 17:17:34 +0100 | [diff] [blame] | 7 | # |
Axel Le Bourhis | a578c14 | 2024-09-17 18:56:00 +0200 | [diff] [blame] | 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
Axel Le Bourhis | 28676c8 | 2024-01-25 17:17:34 +0100 | [diff] [blame] | 9 | # |
Axel Le Bourhis | a578c14 | 2024-09-17 18:56:00 +0200 | [diff] [blame] | 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
Axel Le Bourhis | 28676c8 | 2024-01-25 17:17:34 +0100 | [diff] [blame] | 15 | # |
| 16 | |
| 17 | add_library(gnu17 INTERFACE) |
| 18 | target_compile_options(gnu17 |
Axel Le Bourhis | a578c14 | 2024-09-17 18:56:00 +0200 | [diff] [blame] | 19 | INTERFACE |
| 20 | $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17> |
| 21 | -Wno-stringop-truncation) |
Axel Le Bourhis | 28676c8 | 2024-01-25 17:17:34 +0100 | [diff] [blame] | 22 | target_link_libraries(app PRIVATE gnu17) |