[CMake] Cross platform Multi-threading switches

Sagnes, Frederic frederic.sagnes at siemens.com
Mon Jul 10 09:34:06 EDT 2006


Hello,

I'm working on a multi-threaded program that uses the STLPort library. This library wants multi-threading switches added to the compiler's command line (-pthread for GCC, /MT for VS, ...). Is there a command for CMake that simply adds that switch ? I saw the FindThreads command, but it doesn't seem to suit my needs.

Regards

_______________________________________________

Frédéric Sagnes, A&D AS RD DH K3 Siemens AG Karlsruhe



More information about the CMake mailing list