blob: 7e3cfa773778e07ae26b6a0fcbad4c3029e4de3b [file] [log] [blame]
Axel Le Bourhis28676c82024-01-25 17:17:34 +01001#
Axel Le Bourhisa578c142024-09-17 18:56:00 +02002# Copyright (c) 2024 Project CHIP Authors
Axel Le Bourhis28676c82024-01-25 17:17:34 +01003#
Axel Le Bourhisa578c142024-09-17 18:56:00 +02004# 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 Bourhis28676c82024-01-25 17:17:34 +01007#
Axel Le Bourhisa578c142024-09-17 18:56:00 +02008# http://www.apache.org/licenses/LICENSE-2.0
Axel Le Bourhis28676c82024-01-25 17:17:34 +01009#
Axel Le Bourhisa578c142024-09-17 18:56:00 +020010# 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 Bourhis28676c82024-01-25 17:17:34 +010015#
16
17add_library(gnu17 INTERFACE)
18target_compile_options(gnu17
Axel Le Bourhisa578c142024-09-17 18:56:00 +020019 INTERFACE
20 $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
21 -Wno-stringop-truncation)
Axel Le Bourhis28676c82024-01-25 17:17:34 +010022target_link_libraries(app PRIVATE gnu17)