[CMake] cmake and caching multiline strings problem

Brad King brad.king at kitware.com
Sun Nov 20 10:58:35 EST 2005


Prakash Punnoor wrote:
> is this a bug or illegal to do? I try to store a multiline string in
> CMakeCache.txt, but this breaks:
> 
> SET(A "1
> 2
> 3
> " CACHE INTERNAL "")
> 
> On second run this gives me a parse error (snipped):
> 
> CMake Error: Parse error in cache file CMakeCache.txt. Offending entry: 2
> CMake Error: Parse error in cache file CMakeCache.txt. Offending entry: 3

Multiline strings were added to CMake in version 2.0 but no one ever 
implemented support in the cache for them.  What are you trying to do 
with them?

-Brad


More information about the CMake mailing list