hyprpm: Link against tomlplusplus when using cmake (#4145)

This reduces the compilation time and is consistent with the meson version.
This commit is contained in:
Junxuan Liao 2023-12-13 22:15:03 +08:00 committed by GitHub
parent 55cb565e6d
commit b2e5a80e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,8 @@ file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
set(CMAKE_CXX_STANDARD 23)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET tomlplusplus)
pkg_check_modules(tomlplusplus REQUIRED IMPORTED_TARGET tomlplusplus)
add_executable(hyprpm ${SRCFILES})
target_link_libraries(hyprpm PUBLIC PkgConfig::tomlplusplus)