From 68c8b52612569c0a02706b6c85bc095ddb98460b Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Fri, 22 Jan 2021 20:00:21 +0100 Subject: [PATCH] Build: Use cmake's make_directory utility instead of env(1) and mkdir(1) ..in CMake files. Also, the `-S`s were unnecessary here since "mkdir" doesn't have any spaces and these are not shebangs. --- Userland/Libraries/LibWeb/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CMakeLists.txt b/Userland/Libraries/LibWeb/CMakeLists.txt index 83f7cbf573..ef06590667 100644 --- a/Userland/Libraries/LibWeb/CMakeLists.txt +++ b/Userland/Libraries/LibWeb/CMakeLists.txt @@ -390,7 +390,7 @@ add_custom_target(generate_PropertyID.h DEPENDS CSS/PropertyID.h) add_custom_command( OUTPUT CSS/PropertyID.cpp - COMMAND /usr/bin/env -S mkdir -p CSS + COMMAND ${CMAKE_COMMAND} -E make_directory CSS COMMAND ${write_if_different} CSS/PropertyID.cpp CodeGenerators/Generate_CSS_PropertyID_cpp ${CMAKE_CURRENT_SOURCE_DIR}/CSS/Properties.json VERBATIM DEPENDS Generate_CSS_PropertyID_cpp @@ -408,7 +408,7 @@ add_custom_target(generate_ValueID.h DEPENDS CSS/ValueID.h) add_custom_command( OUTPUT CSS/ValueID.cpp - COMMAND /usr/bin/env -S mkdir -p CSS + COMMAND ${CMAKE_COMMAND} -E make_directory CSS COMMAND ${write_if_different} CSS/ValueID.cpp CodeGenerators/Generate_CSS_ValueID_cpp ${CMAKE_CURRENT_SOURCE_DIR}/CSS/Identifiers.json VERBATIM DEPENDS Generate_CSS_ValueID_cpp