[CMake] help with space in CMAKE_CXX_FLAGS
Philip Lowman
philip at yhbt.com
Tue Oct 6 21:16:53 EDT 2009
On Tue, Oct 6, 2009 at 12:49 PM, Philip Lowman <philip at yhbt.com> wrote:
> I'm trying to do the following but CMake treats each space in a filename
> as a separate flag:
>
> set(sxsoverride "${CMAKE_CURRENT_SOURCE_DIR}/target_sxs.h")
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI ${sxsoverride}"
>
> It fails if there are spaces in the path as CMake seems to expand the
> entry. Anyone have any ideas? Seems buggy to me:
>
> Cmtrycompile CMakeError.log:
>
> ... /FI "C:/Documents" /FI "and" ...
> (etc.)
>
Of course now that I try this at home, I can't replicate my own problem...
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091006/c203757e/attachment.htm>
More information about the CMake
mailing list