]> git.cworth.org Git - apitrace/commit
Fix Android target build on Apple hosts.
authorBen Kelly <ben@wanderview.com>
Sat, 4 May 2013 04:35:37 +0000 (21:35 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 4 May 2013 07:46:50 +0000 (08:46 +0100)
commit7cd8920eec2d51109b2b094e1d5b18eb3840364e
tree42ab7cc9d78725e2173006356bb200a9037b6b0d
parent2b36b81454029dc66d6356dff1ec77fe032d8e5f
Fix Android target build on Apple hosts.

Currently CMakeLists.txt forces CMAKE_C_COMPILER to clang whenever
compiling on an APPLE host.  Unfortunately, this prevents the
android.toolchain.cmake script from selecting the correct cross
compiler. See [line 1136][].

To avoid this problem, only force clang if ANDROID_NDK is not set.  This
is one of the variables used by Android.mk.

[line 1136]: https://github.com/apitrace/apitrace/blob/master/cmake/toolchain/android.toolchain.cmake#L1136
CMakeLists.txt