CheckLanguage module does not pass CMAKE_MAKE_PROGRAM to child process
When using the CheckLanguage
module, if CMAKE_MAKE_PROGRAM
is something other than what would be found by searching PATH
, this information is not conveyed to the child process. This is especially annoying for Ninja - if you want to use CheckLanguage
with Fortran, but your system's built-in Ninja program does not support dyndep, and you have a dyndep build elsewhere on your system, you have to ensure that it's in PATH
rather than simply passing CMAKE_MAKE_PROGRAM
.
As a side note, is there a reason why CheckLanguage
doesn't use try_compile()
? That would automatically solve this issue.