From f92b5b61f38d688fa7ee77a76fc59ecbfc75f11b Mon Sep 17 00:00:00 2001 From: Nathan Mulcahey Date: Tue, 3 Nov 2020 08:41:20 -0800 Subject: [PATCH] cmake: Use ${CMAKE_COMMAND} instead of `cmake` Not all users have `cmake` on their PATH and this causes a build failure. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0b2fef..e02849d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,7 +138,7 @@ if(platform_supports_ninja_browse) OUTPUT build/browse_py.h MAIN_DEPENDENCY src/browse.py DEPENDS src/inline.sh - COMMAND cmake -E make_directory ${CMAKE_BINARY_DIR}/build + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/build COMMAND src/inline.sh kBrowsePy < src/browse.py > ${CMAKE_BINARY_DIR}/build/browse_py.h