OSDN Git Service

[cmake] Pass CMAKE_MAKE_PROGRAM to native configure
authorShoaib Meenai <smeenai@fb.com>
Mon, 8 Jan 2018 21:52:58 +0000 (21:52 +0000)
committerShoaib Meenai <smeenai@fb.com>
Mon, 8 Jan 2018 21:52:58 +0000 (21:52 +0000)
commit4794bea02300894535c7003a7d626aa8b6f1d0f7
tree81015b051b8abf9ea44c1dbf8fd1e049e8459dd2
parent3693c1f4595cf66d64bd56257a528b2f7744882d
[cmake] Pass CMAKE_MAKE_PROGRAM to native configure

If the make program isn't in the path, the native configure will fail.
Pass CMAKE_MAKE_PROGRAM to the native configure explicitly to remedy
this, similar to what's already done for external project configuration.
Explicitly set CMAKE_MAKE_PROGRAM before the user flags so that they can
override it for the native build if they desire (though I can't fathom
why that would be useful).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322032 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CrossCompile.cmake