diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b8a36918768e44c80ff75136cb16f60baef7838f..7fefc0238d91b298dc11396a58fcaecbff671e4d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -36,7 +36,7 @@ else()
 	set(PLATFORM_LIBS -lpthread)
 	#set(CLIENT_PLATFORM_LIBS -lXxf86vm)
 	# This way Xxf86vm is found on OpenBSD too
-	find_library(XXF86VM_LIBRARY, Xxf86vm)
+	find_library(XXF86VM_LIBRARY Xxf86vm)
 	set(CLIENT_PLATFORM_LIBS ${XXF86VM_LIBRARY})
 endif()