[CMake] Backward slashes in Win32

Pau Garcia i Quiles pgquiles at elpauer.org
Thu May 3 02:51:28 EDT 2007


Hello,

Is it possible to get paths with backward slashes instead of forward  
slashes when in Win32?

I mean, I am getting paths like c:/project/dir/file.cpp instead of  
c:\project\dir\file.cpp, which are confusing cmd.exe when I invoke it  
to run some command. For now I am using a STRING(REGEX REPLACE "/"  
"\\\\" VAR_WIN32 VAR) but it's annoying.

(cmake 2.4.6 here)

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)






More information about the CMake mailing list