Boost logo

Boost :

Subject: Re: [boost] Distributed Boost with CMake: proposal and volunteering
From: Daniel Pfeifer (daniel_at_[hidden])
Date: 2011-01-31 02:04:42


Am Sonntag, den 30.01.2011, 18:13 +0100 schrieb Domagoj Saric:
> "Daniel Pfeifer" <daniel_at_[hidden]> wrote in message
> news:9258a13ec6727bac1f0dc8baa849fc35-EhVcX1dJTQZXRw0RBgwNVDBXdh9XVlpBXkJHHF5ZWC9fUkYLQVx+H1dWXjBeQ0wEXFpZQVlR-webmailer2_at_server04.webmailer.hosteurope.de...
>
> A side note:
>
> > * Precompiled headers (currently MSVC only).
>
> Until CMake gets proper precompiled headers support you can easily add
> support for Xcode (Mac OS X) with:
>
> set(
> CMAKE_XCODE_ATTRIBUTE_GCC_PREFIX_HEADER
> "<path to header>"
> CACHE STRING "" FORCE
> )
>
> set(
> CMAKE_XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER
> "YES"
> CACHE STRING "" FORCE
> )

Thank you for the input! I hope it works like this too:

set_target_properties(<targets> PROPERTIES
  XCODE_ATTRIBUTE_GCC_PREFIX_HEADER "<path to header>"
  XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES"
  )

Otherwise it would mean that all targets have to use the same PCH.

Is the header then included automatically in all source files or do you
still have to include it manually?

cheers, Daniel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk