diff options
| author | Junxuan Liao <70618504+MikeWalrus@users.noreply.github.com> | 2023-12-13 22:15:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 14:15:03 +0000 |
| commit | b2e5a80e2ff1fcbf8164a45c5ef8ebffbb511fae (patch) | |
| tree | cb89de210b8c3c7fac150e70fe7500a08397e472 /hyprpm/CMakeLists.txt | |
| parent | 55cb565e6de201a09bc5a7fb91a9a87448cea321 (diff) | |
hyprpm: Link against tomlplusplus when using cmake (#4145)
This reduces the compilation time and is consistent with the meson version.
Diffstat (limited to 'hyprpm/CMakeLists.txt')
| -rw-r--r-- | hyprpm/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
