We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f9afe commit 96984c3Copy full SHA for 96984c3
ortools/routing/CMakeLists.txt
@@ -20,6 +20,10 @@ add_library(${NAME} OBJECT ${_SRCS})
20
set_target_properties(${NAME} PROPERTIES
21
POSITION_INDEPENDENT_CODE ON
22
)
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()
27
target_include_directories(${NAME} PRIVATE
28
${PROJECT_SOURCE_DIR}
29
${PROJECT_BINARY_DIR})
0 commit comments