From b2e5a80e2ff1fcbf8164a45c5ef8ebffbb511fae Mon Sep 17 00:00:00 2001 From: Junxuan Liao <70618504+MikeWalrus@users.noreply.github.com> Date: Wed, 13 Dec 2023 22:15:03 +0800 Subject: [PATCH] hyprpm: Link against tomlplusplus when using cmake (#4145) This reduces the compilation time and is consistent with the meson version. --- hyprpm/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyprpm/CMakeLists.txt b/hyprpm/CMakeLists.txt index e9cbefa1..a6bd1eca 100644 --- a/hyprpm/CMakeLists.txt +++ b/hyprpm/CMakeLists.txt @@ -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)