diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2014-12-10 20:20:04 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2014-12-10 20:20:04 (GMT) |
commit | bb9460b27dec2d251bc71a5d681cbe33100801e1 (patch) | |
tree | e7ce0cf9e0d43d98b387369e92ce9027172ceaf8 | |
parent | 609636acaa92a65a6b44440b67175dce634b2d28 (diff) | |
download | hdf5-bb9460b27dec2d251bc71a5d681cbe33100801e1.zip hdf5-bb9460b27dec2d251bc71a5d681cbe33100801e1.tar.gz hdf5-bb9460b27dec2d251bc71a5d681cbe33100801e1.tar.bz2 |
[svn-r25880] Test if binary folder exists
-rw-r--r-- | config/cmake/HDF518_Examples.cmake.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/cmake/HDF518_Examples.cmake.in b/config/cmake/HDF518_Examples.cmake.in index 5ebb9cd..2b3c2fd 100644 --- a/config/cmake/HDF518_Examples.cmake.in +++ b/config/cmake/HDF518_Examples.cmake.in @@ -12,7 +12,7 @@ set(CTEST_SOURCE_NAME ${CTEST_SCRIPT_ARG}) set(CTEST_DASHBOARD_ROOT ${CTEST_SCRIPT_DIRECTORY}) set(CTEST_BUILD_CONFIGURATION "Release") #set(NO_MAC_FORTRAN "true") -#set(BUILD_OPTIONS ""${BUILD_OPTIONS} -DHDF_BUILD_FORTRAN:BOOL=ON") +#set(BUILD_OPTIONS "${BUILD_OPTIONS} -DHDF_BUILD_FORTRAN:BOOL=ON") #set(BUILD_OPTIONS "${BUILD_OPTIONS} -DHDF_ENABLE_F2003:BOOL=ON) set(CTEST_USE_TAR_SOURCE "true") @@ -87,8 +87,11 @@ endif(CTEST_USE_TAR_SOURCE) ## Clear the build directory ## -------------------------- set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE) -file(MAKE_DIRECTORY "${CTEST_BINARY_DIRECTORY}") -ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) +if (EXISTS "${CTEST_BINARY_DIRECTORY}" AND IS_DIRECTORY "${CTEST_BINARY_DIRECTORY}") + ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) +else (EXISTS "${CTEST_BINARY_DIRECTORY}" AND IS_DIRECTORY "${CTEST_BINARY_DIRECTORY}") + file(MAKE_DIRECTORY "${CTEST_BINARY_DIRECTORY}") +endif (EXISTS "${CTEST_BINARY_DIRECTORY}" AND IS_DIRECTORY "${CTEST_BINARY_DIRECTORY}") # Use multiple CPU cores to build include(ProcessorCount) |