diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5df20ca..14bbdc1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,7 +121,7 @@ endif()
 add_subdirectory(include)
 add_subdirectory(stdlib)
 add_subdirectory(third_party/md5)
-add_subdirectory(third_party/rapidyaml/rapidyaml ryml)
+find_package(ryml 0.4.1 REQUIRED)
 add_subdirectory(core)
 add_subdirectory(cpp)
 add_subdirectory(cmd)
