Skip to content

Commit

Permalink
make libiio not treat warnings as errors
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Nechita <[email protected]>
  • Loading branch information
dNechita committed Dec 5, 2022
1 parent dae50d3 commit bcb57f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ build_libiio () {
# TO DO: Remove the 2 replacements once things get updated to libiio (on next libiio release)
sed -i "s/Winsock2.h/winsock2.h/" deps/mdns/mdns.h
sed -i "s/Ws2tcpip/ws2tcpip/" deps/mdns/mdns.h
# Force libiio not to treat warnings as errors
sed -i "s/-Werror//" CMakeLists.txt
rm -rf build
mkdir build && cd build
cmake_build "-DWITH_TESTS:BOOL=ON -DWITH_DOC:BOOL=OFF -DCSHARP_BINDINGS:BOOL=OFF -DPYTHON_BINDINGS:BOOL=OFF -DENABLE_IPV6:BOOL=OFF -DWITH_SERIAL_BACKEND:BOOL=ON"
Expand Down

0 comments on commit bcb57f5

Please sign in to comment.