From 92056178c664bdc5aa18bb19a2824f9ba09fe0c2 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 11 May 2025 17:33:15 -0700 Subject: [PATCH] build: pass along the make program Ensure that any sub-build uses the same make program as the main application. This is important for the cases where the make program is not in the default search path and we trigger a sub-build. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84a5bb2d..99fda4d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,7 @@ else() BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/RegsGen2 CMAKE_ARGS -DCMAKE_BUILD_TYPE:STRING=Release + -DCMAKE_MAKE_PROGRAM:STRING=${CMAKE_MAKE_PROGRAM} -DCMAKE_SYSTEM_NAME:STRING=${CMAKE_HOST_SYSTEM_NAME} -DCMAKE_SYSTEM_PROCESSOR:STRING=${CMAKE_HOST_SYSTEM_PROCESSOR} BUILD_COMMAND ${CMAKE_COMMAND} --build --config Release