3.7 regression with NSight Tegra
In the CMake 3.6.2 release, the VSNSight test app is fully supported with the command lines:
cmake.exe" -G"Visual Studio 14 2015" -DCMAKE_SYSTEM_NAME=Android ..
and
cmake.exe" -G"Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=Android ..
However, in CMake 3.7.20161012-g8eb60, the same test command lines fail in the "trycompile" stage, as they place tags
<AndroidArch>arm</AndroidArch>
in the test-compile VCXPROJ file instead of
<AndroidArch>armv7-a</AndroidArch>
This leads to
-- Check for working C compiler: C:/NVPACK/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe -- broken
CMake Error at C:/tools/CMake/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler
"C:/NVPACK/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe"
is not able to compile a simple test program.
Modifications to CMake that cause the <AndroidArch>
value to be armv7-a
appear to fix this. However, no combination of setting the various ANDROID-related CMake tags on the command line or config files seem to be able to do this. Also, the Test case driver in the 3.7 source tree does not seem to ad any such arguments.
I have attempted a few WARs in Android-Determine.cmake and have been able to make 3.7 work, but it is unclear whether these are correct at a higher level.
I am using NVIDIA CodeWorks for Android 1r5 with NDK r12b and NSightTegra 3.4.16231