diff --git a/gtsam/base/serialization.h b/gtsam/base/serialization.h index e615afe83..12556db09 100644 --- a/gtsam/base/serialization.h +++ b/gtsam/base/serialization.h @@ -16,7 +16,7 @@ * @author Richard Roberts * @date Feb 7, 2012 */ - +#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION #pragma once #include @@ -270,3 +270,4 @@ void deserializeBinary(const std::string& serialized, T& output, ///@} } // namespace gtsam +#endif \ No newline at end of file