Skip to content

Commit

Permalink
Export YAML_CPP_DLL define on Windows (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Munagala <[email protected]>
  • Loading branch information
Ace314159 authored and jacobperron committed Sep 20, 2022
1 parent d3cf563 commit c9e73b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yaml_cpp_vendor-extras.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ set(yaml_cpp_vendor_LIBRARIES ${YAML_CPP_LIBRARIES})
set(yaml_cpp_vendor_INCLUDE_DIRS ${YAML_CPP_INCLUDE_DIR})

list(APPEND yaml_cpp_vendor_TARGETS yaml-cpp)
if(WIN32)
set_target_properties(${YAML_CPP_LIBRARIES} PROPERTIES INTERFACE_COMPILE_DEFINITIONS YAML_CPP_DLL)
endif()

0 comments on commit c9e73b6

Please sign in to comment.