Skip to content

Commit

Permalink
Better way to link the library
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Jan 24, 2024
1 parent 1417830 commit dca1ffd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ if (REFLECTCPP_BSON)
endif ()

if (REFLECTCPP_CBOR)
# TODO: This is temporary fix, find a better solution.
target_link_libraries(reflectcpp PRIVATE "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/libtinycbor.a")
target_link_libraries(reflectcpp PRIVATE "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/libtinycbor${CMAKE_STATIC_LIBRARY_SUFFIX}")
endif ()

if (REFLECTCPP_FLEXBUFFERS)
Expand Down

0 comments on commit dca1ffd

Please sign in to comment.