# remove bundled rapidjson
rm -r include/cereal/external/rapidjson || die 'could not remove bundled rapidjson'
sed -i -e 's%^\(#include\) "cereal/external/\(rapidjson/[a-z]\+.h\)"%\1 <\2>%g' include/cereal/archives/json.hpp
sed -i -e 's%CEREAL_\(RAPIDJSON_NAMESPACE\)%\1%g' include/cereal/archives/json.hpp
cmake_src_prepare
}