[CMake] Precompiled headers on OS X 10.8, CMAKE 2.8.9, Clang

2012-08-27 Thread Jason T. Slack-Moehrle
Hello All, OS X 10.8.1 CMAKE 2.8.9 Apple clang version 4.0 (tags/Apple/clang-421.10.60) (based on LLVM 3.1svn) I found: http://vtk.org/Wiki/CMake_FAQ#Does_CMake_support_precompiled_headers.3F But I am not seeing how I would specify/use a pre-compiled header in my CMakeLists.txt file. Can anyone

Re: [CMake] Precompiled headers path bug(?)

2011-03-14 Thread Michael Wild
On 03/14/2011 05:58 AM, Paulo Silva wrote: > Hi, > > if I do > > set(PCHDIR ../include.pch) > add_precompiled_header( ${PROJECT_NAME} ${PCHDIR}/pch.hpp ) > > an extra ../ is added to PCHDIR. Isn't this a bug. > However if I do > set(PCHDIR ../../include.pch) > or anything else nothing gets added

[CMake] Precompiled headers path bug(?)

2011-03-13 Thread Paulo Silva
Hi, if I do set(PCHDIR ../include.pch) add_precompiled_header( ${PROJECT_NAME} ${PCHDIR}/pch.hpp ) an extra ../ is added to PCHDIR. Isn't this a bug. However if I do set(PCHDIR ../../include.pch) or anything else nothing gets added. This might be a feature but for me it's working like a bug. S

[CMake] CMake, precompiled headers, Apple, gcc and Qt

2010-10-01 Thread Dieter Oberkofler
Hi! I'm (once again) struggling with the creation of precompiled headers in conjunction with gcc and Qt on the Apple platform. When creating my precompiled header I use a code section based on "PCHSupport_26.cmake" to extract the compile flags as follows: -- STRING(TOUPPER "CMAKE_CXX_FLAG

[CMake] CMake, precompiled headers, Apple, gcc and Qt

2010-10-01 Thread Dieter Oberkofler
Hi! I'm (once again) struggling with the creation of precompiled headers in conjunction with gcc and Qt on the Apple platform. When creating my precompiled header I use a code section based on "PCHSupport_26.cmake" to extract the compile flags as follows: -- STRING(TOUPPER "CMAKE_CXX_FLAG

Re: [CMake] Precompiled headers for Mac OS X

2010-01-19 Thread Werner Smekal
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,

[CMake] Precompiled headers for Mac OS X

2010-01-18 Thread John Clayton
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.kitw

Re: [CMake] Precompiled Headers

2009-06-08 Thread Robert Dailey
On Mon, Jun 8, 2009 at 11:12 AM, David Cole wrote: > On Mon, Jun 8, 2009 at 11:17 AM, John Drescher wrote: > >> >> I've been reading this newsgroup for a while and I notice that most >> >> of the people complain that they miss some feature on Windows, but >> >> completely forget that there are ot

Re: [CMake] Precompiled Headers

2009-06-08 Thread Robert Dailey
On Mon, Jun 8, 2009 at 12:08 PM, John Drescher wrote: > >>> After installing the macro I presented in my first reply a month ago > >>> this has saved me several hours of compile time total on my main > >>> project. However the recent addition of a velociraptor has reduced > >>> this need since th

Re: [CMake] Precompiled Headers

2009-06-08 Thread John Drescher
>>> After installing the macro I presented in my first reply a month ago >>> this has saved me several hours of compile time total on my main >>> project. However the recent addition of a velociraptor has reduced >>> this need since the compile operation is now cpu bound instead of io >>> bound. >>

Re: [CMake] Precompiled Headers

2009-06-08 Thread David Cole
On Mon, Jun 8, 2009 at 11:17 AM, John Drescher wrote: > >> I've been reading this newsgroup for a while and I notice that most > >> of the people complain that they miss some feature on Windows, but > >> completely forget that there are other cool OSes out there and CMake > >> stands for Crosspla

Re: [CMake] Precompiled Headers

2009-06-08 Thread John Drescher
>> I've been reading this newsgroup for a while and I notice that most >> of the people complain that they miss some feature on Windows, but >> completely forget that there are other cool OSes out there and CMake >> stands for Crossplatform Make. This means that a feature must work on all >> platfo

Re: [CMake] Precompiled Headers

2009-06-08 Thread Robert Dailey
On Mon, Jun 8, 2009 at 9:11 AM, Denis Scherbakov wrote: > > > Apart from every compiler making this different (i. e. > > different > > parameters for each compilers), what are the difficulties > > you see for > > making this a first-class feature? My Windows coworkers > > demand this > > feature

Re: [CMake] Precompiled Headers

2009-06-08 Thread Denis Scherbakov
> Apart from every compiler making this different (i. e. > different > parameters for each compilers), what are the difficulties > you see for > making this a first-class feature? My Windows coworkers > demand this > feature and I was thinking in implementing when I had a few > spare time > at wor

Re: [CMake] Precompiled Headers

2009-06-08 Thread Brad King
Pau Garcia i Quiles wrote: Apart from every compiler making this different (i. e. different parameters for each compilers), what are the difficulties you see for making this a first-class feature? It's not the different flags for each compiler that makes it hard. We already do that for other fe

Re: [CMake] Precompiled Headers

2009-06-08 Thread Robert Dailey
On Mon, Jun 8, 2009 at 8:18 AM, Pau Garcia i Quiles wrote: > > > Apart from every compiler making this different (i. e. different > parameters for each compilers), what are the difficulties you see for > making this a first-class feature? My Windows coworkers demand this > feature and I was thinkin

Re: [CMake] Precompiled Headers

2009-06-08 Thread Pau Garcia i Quiles
On Mon, Jun 8, 2009 at 2:48 PM, Brad King wrote: > John Drescher wrote: >>> >>> Thanks for your help. Do you (or anyone else) know if there are any plans >>> to >>> make a dedicated function for this so it is cleaner and portable? >> >> http://www.vtk.org/Bug/view.php?id=1260 > > I just added a FAQ

Re: [CMake] Precompiled Headers

2009-06-08 Thread Brad King
John Drescher wrote: Thanks for your help. Do you (or anyone else) know if there are any plans to make a dedicated function for this so it is cleaner and portable? http://www.vtk.org/Bug/view.php?id=1260 I just added a FAQ entry: http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_preco

Re: [CMake] Precompiled Headers

2009-06-07 Thread John Drescher
> Thanks for your help. Do you (or anyone else) know if there are any plans to > make a dedicated function for this so it is cleaner and portable? http://www.vtk.org/Bug/view.php?id=1260 -- John M. Drescher ___ Powered by www.kitware.com Visit other

Re: [CMake] Precompiled Headers

2009-06-07 Thread Robert Dailey
On Sat, Jun 6, 2009 at 11:22 PM, John Drescher wrote: > Here is what I do for Vs2005 builds and CMake 2.6.4 > > I put this in the main CMakeLists.txt before any > add_subdirectory(Libraries) > > > > You need to then create > > laGUIPCH.h > laGUIPCH.cxx > > the .cxx file contains any headers that

Re: [CMake] Precompiled Headers

2009-06-06 Thread John Drescher
On Sun, Jun 7, 2009 at 12:07 AM, Robert Dailey wrote: > Hey guys, > First of all I just want to let you guys know that I DID find this in my > search: > http://www.cmake.org/pipermail/cmake/2008-May/021483.html > However, I do not feel as if a direct answer was given. Besides, that was > over a yea

[CMake] Precompiled Headers

2009-06-06 Thread Robert Dailey
Hey guys, First of all I just want to let you guys know that I DID find this in my search: http://www.cmake.org/pipermail/cmake/2008-May/021483.html However, I do not feel as if a direct answer was given. Besides, that was over a year ago and I'm hoping some new developments have taken place. Is t

Re: [CMake] Precompiled Headers for Intel on windows

2009-03-17 Thread Eric Noulard
2009/3/17 : > I looked around for precompiled header support and couldn't figure out > how/if it works for intel compilers. > The links such as: http://www.mail-archive.com/cmake@cmake.org/msg05456.html > appear to be pretty MSVC centric and I don't think the stdafx.cpp approach > will work on int

[CMake] Precompiled Headers for Intel on windows

2009-03-16 Thread jesseperla
I looked around for precompiled header support and couldn't figure out how/if it works for intel compilers. The links such as: http://www.mail-archive.com/cmake@cmake.org/msg05456.html appear to be pretty MSVC centric and I don't think the stdafx.cpp approach will work on intel. If there i

Re: [CMake] Precompiled headers

2008-11-11 Thread Bill Hoffman
Yves Martelli wrote: Sorry to ask again, but speeding up my build would really help me and my colleagues in the context of a continuous build... Does CMake support precompiled headers when generating Makefiles? Not directly, but it can be done. It is very compiler/platform specific... I k

Re: [CMake] Precompiled headers

2008-11-11 Thread Eric Noulard
2008/11/11 Yves Martelli <[EMAIL PROTECTED]>: > Sorry to ask again, but speeding up my build would really help me and my > colleagues in the context of a continuous build... > > Does CMake support precompiled headers when generating Makefiles? Not in mainstream CMake but there is [at least] one b

Re: [CMake] Precompiled headers

2008-11-11 Thread Yves Martelli
Sorry to ask again, but speeding up my build would really help me and my colleagues in the context of a continuous build... Does CMake support precompiled headers when generating Makefiles? From: Yves Martelli Sent: 04 November 2008 17:54 To: cmake@cmake.

[CMake] Precompiled headers

2008-11-04 Thread Yves Martelli
Hi, I tried looking for precompiled header support in CMake for Makefiles, but the information on the net is quite sparse and it is not easy to see if it is up to date. I saw that gcc supports precompiled headers and that you just have to give the header to it with an output file. So the questi

Re: [CMake] Precompiled headers

2008-05-06 Thread Rodolfo Lima
Anders Backman escreveu: Ok, that make sense of course...Just read the 2.6 documentation. Is there anyone that have tried to use this script in visualstudio lately with good result? FYI, this script 'once' worked with VS, but I must have made some changes related to gcc precompiled-headers th

Re: [CMake] Precompiled headers

2008-05-06 Thread Anders Backman
Ok, that make sense of course...Just read the 2.6 documentation. Is there anyone that have tried to use this script in visualstudio lately with good result? I get quite a few very confusing errors and warnings related to this: 2>-- Build started: Project: agx_rendering, Configuration: Debug

Re: [CMake] Precompiled headers

2008-05-06 Thread Rodolfo Lima
Anders Backman escreveu: Hi and thanks for the tip... So, what version of cmake are you using? Or are the SOURCES property a platform dependent property? Sorry, I should have mentioned that this is for cmake-2.6, which implements the SOURCES property. Best regards and good luck, rod ___

Re: [CMake] Precompiled headers

2008-05-06 Thread Anders Backman
Hi and thanks for the tip... However, when I try this (Im using VS2008, CMake 2.4-patch 8) I get some problems. I have nailed this down to the following command: #usual add_executable etc... works just fine! add_executable(rendering file1.cpp ...) . . . get_target_property(OBJECT_FILES renderi

Re: [CMake] Precompiled headers

2008-05-06 Thread Rodolfo Lima
Anders Backman escreveu: So is there are portable way of handling this in cmake? I've been using the attached script and it has been working nicely for my needs. The usage is: include(PCHSupport) add_executable(test test.cpp pch.h) ADD_PRECOMPILED_HEADER(test pch.h) I'm using it with gcc

[CMake] Precompiled headers

2008-05-06 Thread Anders Backman
Hi all. Im kind of confused whether cmake does support pre-compiled headers natively or not... I have googled this and found some email around 2007 where various suggestions was proposed, but I cant see it in the most recent versions? So is there are portable way of handling this in cmake? Chee

Re: [CMake] Precompiled Headers

2006-06-01 Thread Sylvain Benner
> Has anyone had any luck with precompiled headers on visual studio 2005?> > For Visual Studio 6, i added additional parameters to each compiled > file. I then told one specific file to build the precompiled headers. > This worked in vs6, but in 2005 the ide must have the actual projects > s

[CMake] Precompiled Headers

2006-06-01 Thread Ryan Connelly
Has anyone had any luck with precompiled headers on visual studio 2005? For Visual Studio 6, i added additional parameters to each compiled file. I then told one specific file to build the precompiled headers. This worked in vs6, but in 2005 the ide must have the actual projects setup for prec