SDL_ttf: cmake: create wiki dir before running wikiheaders.pl --copy-to-wiki

From 1884964828f7fb8b0f03da258eb212ca8aaed078 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 28 Jun 2023 14:53:34 +0200
Subject: [PATCH] cmake: create wiki dir before running wikiheaders.pl
 --copy-to-wiki

---
 cmake/sdlmanpages.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmake/sdlmanpages.cmake b/cmake/sdlmanpages.cmake
index 9d11c9b..0049de1 100644
--- a/cmake/sdlmanpages.cmake
+++ b/cmake/sdlmanpages.cmake
@@ -39,6 +39,7 @@ function(SDL_generate_manpages)
   if(PERL_FOUND AND EXISTS "${ARG_WIKIHEADERS_PL_PATH}")
     add_custom_command(
       OUTPUT "${BUILD_WIKIDIR}/${ARG_SYMBOL}.md"
+      COMMAND "${CMAKE_COMMAND}" -E make_directory "${BUILD_WIKIDIR}"
       COMMAND "${PERL_EXECUTABLE}" "${ARG_WIKIHEADERS_PL_PATH}" "${ARG_SOURCE_DIR}" "${BUILD_WIKIDIR}" "--options=${ARG_OPTION_FILE}" --copy-to-wiki
       DEPENDS ${HEADER_FILES} "${ARG_WIKIHEADERS_PL_PATH}" "${ARG_OPTION_FILE}"
       COMMENT "Generating ${ARG_NAME} wiki markdown files"