diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2021-01-22 20:00:21 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:14:42 +0100 |
commit | 68c8b52612569c0a02706b6c85bc095ddb98460b (patch) | |
tree | 24e8199dc7b76372dd2e355f962ec546f4e9e8ba | |
parent | ea7b7d8ceb2f48127b196a4eaf958bb387bb61da (diff) | |
download | serenity-68c8b52612569c0a02706b6c85bc095ddb98460b.zip |
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.
-rw-r--r-- | Userland/Libraries/LibWeb/CMakeLists.txt | 4 |
1 files 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 |