ASM compiler id not found for Clang with CMake 3.13.0-rc3
Hello,
I noticed that CMake 3.13.0-rc3 has broken support for GNU assembly for Android. CMake 3.12.3 works as expected. Testcase:
Content of CMakeLists.txt
:
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(testcase)
enable_language(ASM)
add_library(foo STATIC foo.S)
Content of foo.S
.arm
Configure with: cmake -GNinja -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=/opt/android-ndk-r16b -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_SYSTEM_VERSION=19 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang ..
Resulting compilation line with CMake 3.12: /opt/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7-none-linux-androideabi --sysroot=/opt/android-ndk-r16b/sysroot -g -fPIC -MD -MT CMakeFiles/foo.dir/foo.S.o -MF CMakeFiles/foo.dir/foo.S.o.d -o CMakeFiles/foo.dir/foo.S.o -c ../foo.S
Faulty line with 3.13rc: /opt/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -o CMakeFiles/foo.dir/foo.S.o -c ../foo.S
Thanks, Gregor