Skip to content

Commit

Permalink
Export YAML_CPP_DLL define on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Munagala <akash.munagala@gmail.com>
  • Loading branch information
Ace314159 committed Feb 3, 2022
1 parent 0c249d5 commit 58e6746
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 @@ -18,3 +18,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 58e6746

Please sign in to comment.