In my cmake toolchain I set the CMAKE_MAKE_PROGRAM.
To clarify I was setting my ninja executable like this:
if (CMAKE_GENERATOR MATCHES "Ninja") # Force update the program to allow updating the ninja version # Don't worry about bad builds # Ninja handles this update by starting over. Here is the error message ninja gave from # upgrading from version 1.7 -> 1.10 # "ninja: warning: bad deps log signature or version; starting over" # This is why ninja is fantastic set(CMAKE_MAKE_PROGRAM "D:/foobar/ninja/1.10.0/ninja.exe" CACHE FILEPATH "" FORCE) endif()
This seemed to work until cmake 3.19. And then I upgraded and this logic broke. Now I have to specify the CMAKE_MAKE_PROGRAM outside the toolchain.
Is there any reason why? Was I not supposed to be doing this?