tools/cmake: fix compile on Alpine Linux
authorJohn Crispin <john@openwrt.org>
Thu, 10 Mar 2016 19:12:15 +0000 (19:12 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 10 Mar 2016 19:12:15 +0000 (19:12 +0000)
commit5133b26d8cd515c4d2536663fe244538c34cecff
tree116f9c9243c1117a28ad8f8b020c753a03e55fb1
parent0c703dd334f19240ccea10a707a50c4d75555749
tools/cmake: fix compile on Alpine Linux

internal jsoncpp include order leads to multiple build
errors on Alpine Linux which uses musl libc

use include order from upstream jsoncpp

first error was:
In file included from /usr/include/c++/5.3.0/stdexcept:38:0,
                 from /home/..../openwrt/build_dir/host/cmake-3.4.3/Utilities/cmjsoncpp/include/json/assertions.h:16,
                 from /home/..../openwrt/build_dir/host/cmake-3.4.3/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp:7:
/usr/include/c++/5.3.0/exception:35:9: error: '#pragma' is not allowed here
 #pragma GCC visibility push(default)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 48995
tools/cmake/patches/120-alpine_musl-compat.patch [new file with mode: 0644]