Skip to content

Commit 2147c56

Browse files
committed
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.
1 parent b341730 commit 2147c56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ else()
114114
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/RegsGen2
115115
CMAKE_ARGS
116116
-DCMAKE_BUILD_TYPE:STRING=Release
117+
-DCMAKE_MAKE_PROGRAM:STRING=${CMAKE_MAKE_PROGRAM}
117118
-DCMAKE_SYSTEM_NAME:STRING=${CMAKE_HOST_SYSTEM_NAME}
118119
-DCMAKE_SYSTEM_PROCESSOR:STRING=${CMAKE_HOST_SYSTEM_PROCESSOR}
119120
BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --config Release

0 commit comments

Comments
 (0)