Skip to content

Commit

Permalink
Fix to allow ninja to use make for generators (ros-visualization#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
  • Loading branch information
mjcarroll and clalancette authored Mar 3, 2023
1 parent 1e2994c commit ade88c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/sip_helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ function(build_sip_binding PROJECT_NAME SIP_FILE)
if(WIN32)
set(MAKE_EXECUTABLE NMake.exe)
else()
set(MAKE_EXECUTABLE "\$(MAKE)")
find_program(MAKE_PROGRAM NAMES make)
message(STATUS "Found required make: ${MAKE_PROGRAM}")
set(MAKE_EXECUTABLE ${MAKE_PROGRAM})
endif()

add_custom_command(
Expand Down

0 comments on commit ade88c5

Please sign in to comment.