diff -ruN ydotool-0.2.0-orig/CMakeLists.txt ydotool-0.2.0/CMakeLists.txt
--- ydotool-0.2.0-orig/CMakeLists.txt 2021-01-09 19:31:54.000000000 +1000
+++ ydotool-0.2.0/CMakeLists.txt 2021-01-18 16:24:57.479830987 +1000
@@ -4,7 +4,7 @@
set(CMAKE_CXX_STANDARD 17)
set(CPM_DOWNLOAD_VERSION 0.27.5)
-set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
+set(CPM_DOWNLOAD_LOCATION "CPM.cmake-${CPM_DOWNLOAD_VERSION}/cmake/CPM.cmake")
if(NOT (EXISTS ${CPM_DOWNLOAD_LOCATION}))
message(STATUS "Downloading CPM.cmake")