AW: [CMake] Cross platform Multi-threading switches

Sagnes, Frederic frederic.sagnes at siemens.com
Tue Jul 11 01:39:57 EDT 2006


Hello Jan,

I thought CMake would have built-in support for multithreaded projects, as they are quite common.
I'll set multi-threading switches for each compiler, but would it be a good idea to have a SET_TARGET_PROPERTIES extension that automatically adds multi-threaded attribute to targets, so that CMake would add the according compiler-specific switches?

Thank you

Frédéric Sagnes

________________________________________
Von: Jan Woetzel [mailto:jw at woetzelweb.de] 
Gesendet: Montag, 10. Juli 2006 16:11
An: Sagnes, Frederic
Cc: cmake at cmake.org
Betreff: Re: [CMake] Cross platform Multi-threading switches

Sagnes, Frederic wrote:

Handle it as compiler flag or library.
gcc "-pthread" == -lpthread 

SET(CMAKE_CXX_FLAGS ...
or
SET_SOURCE_FILES_PROPERTIES( ... PROPERTIES OMPILE_FLAGS  ...
should help you.


More information about the CMake mailing list