On 06/09/2012 00:30, Loaden wrote:
Hi, I look this ML:
http://www.cmake.org/pipermail/cmake/2010-January/034437.html
Does CMake still can't support how to add sources to a target library
after add_library()?
I wan't support Precompiled Header for both MSVC / GCC(MinGW).
In MSVC case, it need a source, e.g. StdAfx.cpp to support PCH.
But in GCC case, it only need a header, e.g. pch.h
Any help or comments or tips are best welcome!
See: https://codereview.qt-project.org/#change,34052

I don't see what this feature would have to do with precompiled headers.

To use a precompiled header with GCC, just add -include path/to/precompiled/header.hpp to your compilation flags, and make sure you've built path/to/precompiled/header.hpp.gch before that.
--

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

Reply via email to