[CMake] Parse Error while processing CMakeCache

William A. Hoffman billlist at nycap.rr.com
Tue Sep 20 13:09:33 EDT 2005


The format for -C files is a cmake file and not a cache file.  So you need
to change it to a bunch of SET(...) commands.  Alternatively, you can just create
a file called CMakeCache.txt in the binary directory before you run cmake.

-Bill


At 12:53 PM 9/20/2005, M S wrote:
>Hi,
>
>I am trying to pass my customized cache file as argument to CMake. CMake could not parse the file.
>I generated a cache file using CMakeSetup and passed that un-altered (thinking this should work), but the problem persists.
>
>Here is the command I used and the output
>cmake -C ".\CMakeCache.txt" -G "NMake Makefiles" ..\
>loading initial cache file .\CMakeCache.txt
>CMake Error: Error in cmake code at
>CMakeCache.txt:16:
>Parse error.  Expected a command name, got unquoted argument with text "//".
>CMake Error: Error in cmake code at
>CMakeCache.txt:16:
>Parse error.  Expected a command name, got unquoted argument with text "//".
>
>I am attaching the CMakeCache.txt file
>I appreciate if anyone could direct/point out what I was doing wrong or need to do to get this working.
>
>Thanks
>-MS
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list