ExternalProject: Fix path to cmake in verify script

In commit v3.0.0-rc1~103^2~3 (ExternalProject: Reattempt download when
verification fails, 2014-01-15) a reference to ${CMAKE_COMMAND} was
added to generate a reference to the CMake command in a cmake script.
Escape the '$' so that the literal variable reference appears in the
script instead of writing the path to the current cmake.  This is
necessary when the path to CMake contains spaces or other characters
special to CMake syntax.
This commit is contained in:
Brad King 2014-04-30 16:18:13 -04:00
parent 20b46a09e3
commit 420280f322
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ does not match expected value
Retrying download.
\")
file(REMOVE \"\${file}\")
execute_process(COMMAND ${CMAKE_COMMAND} -P \"${download_script}\")
execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\")
endif()
endwhile()