Skip to content

Commit

Permalink
Added the INTERFACE keyword in the CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Mar 24, 2024
1 parent 93610fb commit fd5c463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ endif ()
if (REFLECTCPP_TOML)
find_package(PkgConfig REQUIRED)
pkg_check_modules(tomlplusplus REQUIRED IMPORTED_TARGET tomlplusplus)
target_link_libraries(reflectcpp PkgConfig::tomlplusplus)
target_link_libraries(reflectcpp INTERFACE PkgConfig::tomlplusplus)
endif()

if (REFLECTCPP_XML)
Expand Down

0 comments on commit fd5c463

Please sign in to comment.