Axel Roebel wrote:
> I frequently struggle with the problem to set
> global linker flags. Global here means these flags should be used 
> whenever the linker is used. The main example where I need that
> is the -mno-cygwin flag of the cygwin compiler. 
> This flag creates objects that will not make use of the cygwin dll.
> It has to be present during compilation and linking.
> 
> So for compilation I use
> 
> ADD_DEFINITION(-mno-cygwin)
> 
> for the linker there seems nothing equivalent

CMAKE_EXE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS

-Brad

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to