Re: [CMake] Better way than: SET(CMAKE_C_ARCHIVE_CREATE " my_flags ... ?

2019-07-13 Thread Marc Herbert
> Additional issue with this CMAKE_C_ARCHIVE_CREATE hack: it's ignored and > reverts back to the default in link.txt when building a "pure assembly" > library without any .c file. Adding an empty.c file works around the problem > Much better than adding an empty .c file: CMAKE_ASM_ARCHIVE_CREATE (

Re: [CMake] Better way than: SET(CMAKE_C_ARCHIVE_CREATE " my_flags ... ?

2019-04-05 Thread Marc Herbert
Additional issue with this CMAKE_C_ARCHIVE_CREATE hack: it's ignored and reverts back to the default in link.txt when building a "pure assembly" library without any .c file. Adding an empty.c file works around the problem. Is this expected? Reproduced with CMake 3.13 and 3.14.0. Le lun. 25 févr.

[CMake] Better way than: SET(CMAKE_C_ARCHIVE_CREATE " my_flags ... ?

2019-02-25 Thread Marc Herbert
Hi, 1. I found the hack below in the list's archive. However it seems... hackish. Among others it can't _append_ a flag, it can only replace all flags. Any newer and better way to append some extra flags? 2. Bonus question: how would you query "ar" and append some extra flags *only* when ar/ranl