diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2014-12-10 20:19:13 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2014-12-10 20:19:13 (GMT) |
commit | 44620319b716ac3927eaae9cd2854d5b36eb0217 (patch) | |
tree | 23574ddedf19b19274e4cf9c00393b6dfa95a7ad /config/cmake/HDF518_Examples.cmake.in | |
parent | 0083485ab758d9fd0f69c885a508a834cc2fda64 (diff) | |
download | hdf5-44620319b716ac3927eaae9cd2854d5b36eb0217.zip hdf5-44620319b716ac3927eaae9cd2854d5b36eb0217.tar.gz hdf5-44620319b716ac3927eaae9cd2854d5b36eb0217.tar.bz2 |
[svn-r25879] Test if binary folder exists
Diffstat (limited to 'config/cmake/HDF518_Examples.cmake.in')
-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) |