summaryrefslogtreecommitdiffstats
path: root/Tests/CPackTestAllGenerators
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-11-28 22:01:25 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-11-29 20:49:36 (GMT)
commit587b7b6f5ec252906e8d595d895e334680e341c9 (patch)
tree762bf2a04c2450c647211673b505b378fc89490d /Tests/CPackTestAllGenerators
parentd5ac791366595be307896e9894c66815c1e1eb2f (diff)
downloadCMake-587b7b6f5ec252906e8d595d895e334680e341c9.zip
CMake-587b7b6f5ec252906e8d595d895e334680e341c9.tar.gz
CMake-587b7b6f5ec252906e8d595d895e334680e341c9.tar.bz2
Tests: Use the right path to CPack value for running CPack tests
These tests were not running properly on Visual Studio or Xcode dashboards before this commit because of the "Debug" or "Release" sub-directory. The scripts already have CMAKE_CPACK_COMMAND since the correct CMake executable is used to run the scripts, so just use that, rather than passing down an incorrect path to the CPack executable.
Diffstat (limited to 'Tests/CPackTestAllGenerators')
-rw-r--r--Tests/CPackTestAllGenerators/RunCPack.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/Tests/CPackTestAllGenerators/RunCPack.cmake b/Tests/CPackTestAllGenerators/RunCPack.cmake
index e0c241e..952d5f4 100644
--- a/Tests/CPackTestAllGenerators/RunCPack.cmake
+++ b/Tests/CPackTestAllGenerators/RunCPack.cmake
@@ -1,14 +1,10 @@
-if(NOT DEFINED cpack)
- message(FATAL_ERROR "cpack not defined")
-endif()
-
if(NOT DEFINED dir)
message(FATAL_ERROR "dir not defined")
endif()
# Analyze 'cpack --help' output for list of available generators:
#
-execute_process(COMMAND ${cpack} --help
+execute_process(COMMAND ${CMAKE_CPACK_COMMAND} --help
RESULT_VARIABLE result
OUTPUT_VARIABLE stdout
ERROR_VARIABLE stderr
@@ -43,7 +39,7 @@ message(STATUS "CPack generators='${generators}'")
foreach(g ${generators})
message(STATUS "Calling cpack -G ${g}...")
- execute_process(COMMAND ${cpack} -G ${g}
+ execute_process(COMMAND ${CMAKE_CPACK_COMMAND} -G ${g}
RESULT_VARIABLE result
OUTPUT_VARIABLE stdout
ERROR_VARIABLE stderr