summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-30 20:18:13 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-30 20:21:58 (GMT)
commit420280f32265eda0e24b2b11ab9d39491d9e8512 (patch)
tree7f1ae8119bbdd7bd2aca7169c63784a138138687 /Modules/ExternalProject.cmake
parent20b46a09e38be7521a903e1846716ce9a2ed2df6 (diff)
downloadCMake-420280f32265eda0e24b2b11ab9d39491d9e8512.zip
CMake-420280f32265eda0e24b2b11ab9d39491d9e8512.tar.gz
CMake-420280f32265eda0e24b2b11ab9d39491d9e8512.tar.bz2
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.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 0df51a8..17cb866 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -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()