diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,8 +29,8 @@ pkg_check_modules(
   hyprlang>=0.4.2
   libzip
   cairo
-  librsvg-2.0
-  tomlplusplus)
+  librsvg-2.0)
+find_package(tomlplusplus)
 
 if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
   message(STATUS "Configuring hyprcursor in Debug")
