Hi!
For GNU/MinGW gcc i do use this:
# MinGW / GNU Compiler
IF( ${CMAKE_COMPILER_IS_GNUCXX} )
# link libstdc++ and others statically
SET (CMAKE_EXE_LINKER_FLAGS "-static-libstdc++ -static-libgcc
--disable-shared --enable-static --static")
ENDIF( ${CMAKE_COMPILER_IS_GNUCXX} )
Regards,
Florian