[CMake] Depending on a Config File (CMake and VC++)

Brad King brad.king at kitware.com
Fri May 26 13:17:37 EDT 2006


Steve Johns wrote:
> Excellent!  Thanks very much for this info.
> I'm seeing a problem, though.
> CMake is not finding my config file, even though it does exist.
> CMake announces its search with forward-slash paths, but I'm in the VS 
> C++ IDE.
> Is CMake not actually looking for:
> 
>  c:\Temp\traps.p01\trunk\TRAPS2\traps_config.txt
> 
> (I guess not, or it would find it, because the file does exist there.)
> 
> Is this a bug, or a driver error of some sort?
> 
> Below is the CMake output from the Build -
> ____________________________________
> 
> Deleting intermediate files and output files for project 'jklib2', 
> configuration 'Debug|Win32'.
> Building Custom Rule c:/Temp/traps.p01/trunk/JKLIB2/CMakeLists.txt
> CMake Error: File c:/Temp/traps.p01/trunk/TRAPS2/traps_config.txt, does 
> not exist.

Forward-slashes are the way CMake keeps track of paths internally, and 
they should work fine even on Windows.  What is the exact CONFIGURE_FILE 
call you are using?

-Brad


More information about the CMake mailing list