[Cmake] CMakeBackwardsCompatibility and X11/PThreads

Andy Cedilnik andy.cedilnik at kitware.com
Fri Mar 28 08:50:43 EST 2003


Hi Nils,

If you only want parts of backward compatibility, do not use it. Use
modules directly.

What does it mean linker flags per .o file?

You can do linker flags per target:

SET_TARGET_PROPERTIES(myLib PROPERTIES LINK_FLAGS "-someflag")

			Andy

On Fri, 2003-03-28 at 08:24, Nils H. Busch wrote:
> I have been using CMakeBackwardsCompatibilityCXX/C for querying ANSI
> flags and STD namespaces.
> I find, however, that there seem to be tests for X11 and thread models
> included, I would like to avoid.
> Looking at the cmake file, I can't find the module that causes this, so
> I don't know what to exlude from my tests.
> 
> Furthermore, is there a way to pass certain linker flags on a per .o
> file basis like there is one for source file compile flags ?





More information about the CMake mailing list