summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-03-10 16:43:37 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-03-10 16:43:37 (GMT)
commit89da5458b681568ed4e18a5250cfecd77d84f92c (patch)
treec9d203a5ca3708ce84ec57b3495afd6323c71c56
parent47bb12bc821a0881fcf9157b958e94b4e48bd33c (diff)
downloadhdf5-89da5458b681568ed4e18a5250cfecd77d84f92c.zip
hdf5-89da5458b681568ed4e18a5250cfecd77d84f92c.tar.gz
hdf5-89da5458b681568ed4e18a5250cfecd77d84f92c.tar.bz2
[svn-r26415] Fix script mode
-rw-r--r--config/cmake/HDF518_Examples.cmake.in21
1 files changed, 11 insertions, 10 deletions
diff --git a/config/cmake/HDF518_Examples.cmake.in b/config/cmake/HDF518_Examples.cmake.in
index 7b7cf0a..efd7c04 100644
--- a/config/cmake/HDF518_Examples.cmake.in
+++ b/config/cmake/HDF518_Examples.cmake.in
@@ -110,16 +110,17 @@ set (CTEST_CONFIGURE_COMMAND
set($ENV{LC_MESSAGES} "en_EN")
#-----------------------------------------------------------------------------
- ## NORMAL process
- ## --------------------------
- CTEST_START (Experimental)
- CTEST_CONFIGURE (BUILD "${CTEST_BINARY_DIRECTORY}")
- CTEST_READ_CUSTOM_FILES ("${CTEST_BINARY_DIRECTORY}")
- CTEST_BUILD (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
- CTEST_TEST (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args} RETURN_VALUE res)
- if(res GREATER 0)
- message (FATAL_ERROR "tests FAILED")
- endif(res GREATER 0)
+configure_file(${CTEST_SOURCE_DIRECTORY}/config/cmake/CTestCustom.cmake ${CTEST_BINARY_DIRECTORY}/CTestCustom.cmake)
+ctest_read_custom_files ("${CTEST_BINARY_DIRECTORY}")
+## NORMAL process
+## --------------------------
+ctest_start (Experimental)
+ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}")
+ctest_build (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
+ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args} RETURN_VALUE res)
+if(res GREATER 0)
+ message (FATAL_ERROR "tests FAILED")
+endif(res GREATER 0)
#-----------------------------------------------------------------------------
##############################################################################################################
message(STATUS "DONE") \ No newline at end of file