From 3e946d87e48a363d31ad6d394e7b61631ca398a3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Apr 2018 12:44:47 -0400 Subject: [PATCH] DolphinWX/DolphinQt2 CMakeLists: Use cmake -E instead of mkdir -p for creating language directories CMake already has this functionality built-in. This lessens depending on the host system environment and is more cross-platform friendly (which is always nice from a build-system point of view). --- Source/Core/DolphinQt2/CMakeLists.txt | 2 +- Source/Core/DolphinWX/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/CMakeLists.txt b/Source/Core/DolphinQt2/CMakeLists.txt index 43c6ea0757..b023fb9a4c 100644 --- a/Source/Core/DolphinQt2/CMakeLists.txt +++ b/Source/Core/DolphinQt2/CMakeLists.txt @@ -162,7 +162,7 @@ if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE) endif() add_custom_command(OUTPUT ${mo} - COMMAND mkdir -p ${mo_dir} + COMMAND cmake -E make_directory ${mo_dir} COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none -s ${po} ${pot_file} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo} ${po} DEPENDS ${po} diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index 517f5ee6dc..2641d490f3 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -137,7 +137,7 @@ if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE) endif() add_custom_command(OUTPUT ${mo} - COMMAND mkdir -p ${mo_dir} + COMMAND cmake -E make_directory ${mo_dir} COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none -s ${po} ${pot_file} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo} ${po} DEPENDS ${po}