[CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

Michael Wild themiwi at gmail.com
Mon Dec 12 15:04:12 EST 2011


On 12/12/2011 09:00 PM, Robert Dailey wrote:
> I need a version of CMAKE_EXE_LINKER_FLAGS for shared libraries. I need
> to specify /NODEFAULTLIB for a shared library (DLL) that I'm building,
> but it doesn't seem that CMAKE_EXE_LINKER_FLAGS is used by shared
> library projects generated by CMake for visual studio.
> 
> Any suggestions?
> 

Use CMAKE_SHARED_LINKER_FLAGS. Strangely, this family of variables is
missing from the docs...

Michael


More information about the CMake mailing list