IAR: library with just ASM files can`t be created
Hello,
I have a weird problem with CMake 3.8 on Windows. If I define a library with just Assembler files,
CMake doesn't use the right CMAKE_*_CREATE_STATIC_LIBRARY
Command.
(CMAKE_ASM_COMPILER
is defined by commandline and still correct)
# some external subdirectory
enable_language(ASM)
add_library(stm32f0xx_startup
# Workaround: add a empty c file!
# dummy.c
startup_stm32f0xx.s
)
This will result in the syntax for ar (and fail):
[1/24] cmd.exe /C "cd . && iarchive.exe cr lib.a ...
Enabling the workaround will behave correctly:
[1/24] cmd.exe /C "cd . && iarchive.exe lib.a --create ...
seems like the IAR-ASM.cmake file should define CMAKE_ASM_CREATE_STATIC_LIBRARY
but doesn' t