File tree Expand file tree Collapse file tree 6 files changed +16
-4
lines changed
Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ add_library(${NAME} OBJECT ${_SRCS})
2020set_target_properties (${NAME} PROPERTIES
2121 POSITION_INDEPENDENT_CODE ON
2222 )
23+ if (MSVC AND BUILD_SHARED_LIBS )
24+ target_compile_definitions (${NAME} PUBLIC "OR_BUILD_DLL" )
25+ target_compile_definitions (${NAME} PRIVATE "OR_EXPORT" )
26+ endif ()
2327target_include_directories (${NAME} PRIVATE
2428 ${PROJECT_SOURCE_DIR}
2529 ${PROJECT_BINARY_DIR} )
Original file line number Diff line number Diff line change @@ -2291,7 +2291,7 @@ class LocalSearchFilterManager : public BaseObject {
22912291 int64_t accepted_value_;
22922292};
22932293
2294- class IntVarLocalSearchFilter : public LocalSearchFilter {
2294+ class OR_DLL IntVarLocalSearchFilter : public LocalSearchFilter {
22952295 public:
22962296 explicit IntVarLocalSearchFilter (const std::vector<IntVar*>& vars);
22972297 ~IntVarLocalSearchFilter () override ;
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ class PathsMetadata {
251251 std::vector<int64_t > path_of_node_;
252252};
253253
254- class RoutingModel {
254+ class OR_DLL RoutingModel {
255255 public:
256256 // / Types of precedence policy applied to pickup and delivery pairs.
257257 enum PickupAndDeliveryPolicy {
@@ -2837,7 +2837,7 @@ class RoutingModel {
28372837};
28382838
28392839// / Routing model visitor.
2840- class RoutingModelVisitor : public BaseObject {
2840+ class OR_DLL RoutingModelVisitor : public BaseObject {
28412841 public:
28422842 // / Constraint types.
28432843 static const char kLightElement [];
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ set_target_properties(${NAME} PROPERTIES
2121 LINKER_LANGUAGE CXX
2222 POSITION_INDEPENDENT_CODE ON
2323 )
24+ if (MSVC AND BUILD_SHARED_LIBS )
25+ target_compile_definitions (${NAME} PUBLIC "OR_BUILD_DLL" )
26+ target_compile_definitions (${NAME} PRIVATE "OR_EXPORT" )
27+ endif ()
2428target_include_directories (${NAME} PRIVATE
2529 ${PROJECT_SOURCE_DIR}
2630 ${PROJECT_BINARY_DIR} )
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ add_library(${NAME} OBJECT ${_SRCS})
2929set_target_properties (${NAME} PROPERTIES
3030 POSITION_INDEPENDENT_CODE ON
3131 )
32+ if (MSVC AND BUILD_SHARED_LIBS )
33+ target_compile_definitions (${NAME} PUBLIC "OR_BUILD_DLL" )
34+ target_compile_definitions (${NAME} PRIVATE "OR_EXPORT" )
35+ endif ()
3236target_include_directories (${NAME} PUBLIC
3337 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} >
3438 $<BUILD_INTERFACE:${PROJECT_BINARY_DIR} >)
Original file line number Diff line number Diff line change @@ -1469,7 +1469,7 @@ class MPConstraint {
14691469 * instead. We need to figure out how to deal with the subtleties of
14701470 * the default values.
14711471 */
1472- class MPSolverParameters {
1472+ class OR_DLL MPSolverParameters {
14731473 public:
14741474 // / Enumeration of parameters that take continuous values.
14751475 enum DoubleParam {
You can’t perform that action at this time.
0 commit comments