[CMake] Problem building libraries with no sources with Visual Studio 9 (2008)
Pere Mato Vila
Pere.Mato at cern.ch
Wed Dec 22 13:32:43 EST 2010
> ADD_CUSTOM_COMMAND(
> OUTPUT {library}.def
> COMMAND <using ${library}-static>
> COMMAND ${CMAKE_COMMAND} -E touch ${library}.cpp
> DEPENDS ${library}-static
> )
>
> This would invalidate ${library}.cpp each time ${library}.def is
> regenerated, so the dummy is recompiled and ${library} relinked.
Many thanks for the hint.
Pere
More information about the CMake
mailing list