summaryrefslogtreecommitdiffstats
path: root/Tests/CPackWiXGenerator
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-07 15:53:45 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:40 (GMT)
commitb633b263082ae2c74a030aefb9048b0a20098b61 (patch)
tree48c9fc9d05ac53427642ad5f7ec9975684696b2e /Tests/CPackWiXGenerator
parent191f25e2bd0a8b63d5abfecfd403b9f1414dfc8d (diff)
downloadCMake-b633b263082ae2c74a030aefb9048b0a20098b61.zip
CMake-b633b263082ae2c74a030aefb9048b0a20098b61.tar.gz
CMake-b633b263082ae2c74a030aefb9048b0a20098b61.tar.bz2
CPackWiX: Fix test to build with expected config
Diffstat (limited to 'Tests/CPackWiXGenerator')
-rw-r--r--Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake b/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake
index 30e33cf2..ca9fd90 100644
--- a/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake
+++ b/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake
@@ -10,7 +10,12 @@ message(STATUS "CMAKE_COMMAND: ${CMAKE_COMMAND}")
message(STATUS "CMAKE_CPACK_COMMAND: ${CMAKE_CPACK_COMMAND}")
message(STATUS "CPackWiXGenerator_BINARY_DIR: ${CPackWiXGenerator_BINARY_DIR}")
+if(config)
+ set(_C_config -C ${config})
+endif()
+
execute_process(COMMAND "${CMAKE_CPACK_COMMAND}"
+ ${_C_config}
RESULT_VARIABLE CPack_result
OUTPUT_VARIABLE CPack_output
ERROR_VARIABLE CPack_error