Skip to content

Commit

Permalink
nrfconnect: fix warning when compiling c files (#15565)
Browse files Browse the repository at this point in the history
  • Loading branch information
eve-cxrp authored and pull[bot] committed Nov 20, 2023
1 parent 9917c68 commit 6c371dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/nrfconnect/app/enable-gnu-std.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
add_library(gnu17 INTERFACE)
target_compile_options(gnu17 INTERFACE -std=gnu++17 -D_SYS__PTHREADTYPES_H_)
target_compile_options(gnu17
INTERFACE
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
-D_SYS__PTHREADTYPES_H_)
target_link_libraries(app PRIVATE gnu17)

0 comments on commit 6c371dd

Please sign in to comment.