[CMake] Precompiled headers path bug(?)

Paulo Silva paulo.jnkml at gmail.com
Mon Mar 14 00:58:08 EDT 2011


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.

So how can I set
set(PCHDIR ../include.pch)
without having to use a softlink on the file system?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110314/12d38046/attachment.htm>


More information about the CMake mailing list