[CMake] FIND_PROGRAM Question.

John Biddiscombe jbiddiscombe at bluewin.ch
Thu Mar 31 16:01:43 EST 2005


> The problem is that CMake correctly generates a correct Windows path 
> for the COMMAND argument but not so when another FIND_PROGRAM entity 
> exists in the ARGS?

STRING(REGEX REPLACE "/" "\\\\" OUT "${IN}")

will convert / to \ for a windows path.

$0.02

JB




More information about the CMake mailing list