> CMake has undocumented variables set by the Modules/Platform/* > files to specify the rules for creating archives. These are: > > CMAKE_<LANG>_ARCHIVE_{CREATE,APPEND,FINISH} > > for creating, appending to, and finishing an archive. For > tools/platforms that do not support separate steps we also > have: > > CMAKE_<LANG>_CREATE_STATIC_LIBRARYSetting CMAKE_CXX_CREATE_STATIC_LIBRARY works on OS X and linux, but on windows I still see a call to "lld-link2 /lib..." when CMAKE_CXX_CREATE_STATIC_LIBRARY is set to use llvm-lib. Cheers, Rafael
On 07/17/2015 02:44 PM, Rafael Espíndola wrote:> Setting CMAKE_CXX_CREATE_STATIC_LIBRARY works on OS X and linux, but > on windows I still see a call to "lld-link2 /lib..." when > CMAKE_CXX_CREATE_STATIC_LIBRARY is set to use llvm-lib.What CMake generator are you using on Windows? These command-line rule variables are implementation details of the Makefile and Ninja generators only. For the VS IDE project files msbuild constructs the actual command lines. -Brad
On 20 July 2015 at 09:00, Brad King <brad.king at kitware.com> wrote:> On 07/17/2015 02:44 PM, Rafael Espíndola wrote: >> Setting CMAKE_CXX_CREATE_STATIC_LIBRARY works on OS X and linux, but >> on windows I still see a call to "lld-link2 /lib..." when >> CMAKE_CXX_CREATE_STATIC_LIBRARY is set to use llvm-lib. > > What CMake generator are you using on Windows? These command-line > rule variables are implementation details of the Makefile and Ninja > generators only. For the VS IDE project files msbuild constructs > the actual command lines.I was using ninja for windows too. Cheers, Rafael