[CMake] Precompiled headers for Mac OS X
Werner Smekal
smekal at iap.tuwien.ac.at
Tue Jan 19 03:19:22 EST 2010
Hi John,
that's easy:
set_target_properties(
executable
PROPERTIES
XCODE_ATTRIBUTE_GCC_PREFIX_HEADER "path/stdwx.h"
XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES"
)
stdwx.h must include all headers you want to have precompiled and must
also be included by the actual source file.
HTH,
Werner
On 1/18/10 6:44 PM, John Clayton wrote:
> Hi there
>
> Is there a way to set up precompiled headers for Mac OS X (10.5 and
> 10.6) using CMake? I've seen some doco on how its done for Win32, but
> none for the Mac system yet.
>
> Any help appreciated.
>
> Thanks,
> --
> John Clayton
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
--
Dr. Werner Smekal
Institut fuer Angewandte Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886
email: smekal at iap.tuwien.ac.at
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499
More information about the CMake
mailing list