[CMake] creating static library with references to other .lib files

Jesper Eskilson jesper at eskilson.se
Mon Jun 18 08:42:58 EDT 2007


2007/6/14, David Cole <david.cole at kitware.com>:
> It's "advanced" CMake use, but you might want to have a look at overriding
> the CMake "rule variable" CMAKE_CXX_CREATE_STATIC_LIBRARY.
> (Or _C_ if it's C source code.) You should be able to add some linker flags
> in there, although they may apply to all static libraries built in the whole
> project. I'm not 100% clear myself on how these rule variables work...
>
> Perhaps somebody else who has used a technique like this can chime in?

Setting CMAKE_CXX_CREATE_STATIC_LIBRARY has no effect on the generated
vcproj file. In fact, the value set by CMake in
CMakeCXXInformation.cmake does not seem to be used in the vcproj file.

-- 
/Jesper


More information about the CMake mailing list