Unify symbol visibility configuration for all compilers

This makes it possible to build unit tests with shared libraries on MSVC.

Change-Id: I1db66a80b2c78c4f3d354e35235244d17bac9809
This commit is contained in:
Taylor Braun-Jones
2020-01-28 12:09:30 -05:00
parent 29c2912ee6
commit 3f6d273676
66 changed files with 287 additions and 180 deletions
+2 -1
View File
@@ -34,6 +34,7 @@
#include <string>
#include "ceres/internal/eigen.h"
#include "ceres/internal/port.h"
namespace ceres {
namespace internal {
@@ -46,7 +47,7 @@ namespace internal {
// line/direction. FunctionSample contains the information in two
// ways. Information in the ambient space and information along the
// direction of search.
struct FunctionSample {
struct CERES_EXPORT_INTERNAL FunctionSample {
FunctionSample();
FunctionSample(double x, double value);
FunctionSample(double x, double value, double gradient);