Skip to content

Commit

Permalink
cmake: add missing define to routing build for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Feb 5, 2025
1 parent 36f9afe commit 96984c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ortools/routing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ add_library(${NAME} OBJECT ${_SRCS})
set_target_properties(${NAME} PROPERTIES
POSITION_INDEPENDENT_CODE ON
)
if(MSVC AND BUILD_SHARED_LIBS)
target_compile_definitions(${NAME} PUBLIC "OR_BUILD_DLL")
target_compile_definitions(${NAME} PRIVATE "OR_EXPORT")
endif()
target_include_directories(${NAME} PRIVATE
${PROJECT_SOURCE_DIR}
${PROJECT_BINARY_DIR})
Expand Down

0 comments on commit 96984c3

Please sign in to comment.