summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-10-02 20:42:58 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-10-02 20:42:58 (GMT)
commit80ff6d8fee7abfb61519d122247f00a325091d61 (patch)
treebbba953de94971fe6987d48e2d0ebb289ee1ed3c
parentf17fe2869776107f85aeb9d2cb91b340d58cbcd4 (diff)
downloadhdf5-80ff6d8fee7abfb61519d122247f00a325091d61.zip
hdf5-80ff6d8fee7abfb61519d122247f00a325091d61.tar.gz
hdf5-80ff6d8fee7abfb61519d122247f00a325091d61.tar.bz2
[svn-r24251] Add packaging to process
-rwxr-xr-xbin/cmakehdf513
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/cmakehdf5 b/bin/cmakehdf5
index 874df5d..6339698 100755
--- a/bin/cmakehdf5
+++ b/bin/cmakehdf5
@@ -219,6 +219,19 @@ if (NOT LOCAL_SKIP_TEST)
endif()
message ("test DONE")
endif (NOT LOCAL_SKIP_TEST)
+if(NOT LOCAL_MEMCHECK_TEST)
+ ##-----------------------------------------------
+ ## Package the product
+ ##-----------------------------------------------
+ execute_process(COMMAND cpack -C ${CTEST_BUILD_CONFIGURATION} -V
+ WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY}
+ RESULT_VARIABLE cpackResult
+ OUTPUT_VARIABLE cpackLog
+ ERROR_VARIABLE cpackLog.err
+ )
+ file(WRITE ${CTEST_BINARY_DIRECTORY}/cpack.log "${cpackLog.err}" "${cpackLog}")
+endif(NOT LOCAL_MEMCHECK_TEST)
+#-----------------------------------------------------------------------------
message ("DONE")
EOF