summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-11-15 16:35:29 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-11-15 16:35:29 (GMT)
commitcd7057b21ca699ade836c780080a81988c84cac6 (patch)
treecd1e44fd2f57d0d231c3fe2ec222dee729c2008a /CMakeLists.txt
parent0c589bf7b56738d9c643718be5f12a72a1e39e83 (diff)
downloadhdf5-cd7057b21ca699ade836c780080a81988c84cac6.zip
hdf5-cd7057b21ca699ade836c780080a81988c84cac6.tar.gz
hdf5-cd7057b21ca699ade836c780080a81988c84cac6.tar.bz2
[svn-r19782] Fix CMake testing for links_env test which requires an environment variable at test run-time. Modified runTest.cmake file to allow optional ENV_VAR and ENV_VALUE to be passed. runTest.cmake requires a reference file, added links_env.out to testfiles folder.
Also updated root CMakeLists.txt to output a message when unsopported options are configured with the PARALLEL option. CMake will still generate files. Tested: windows and local linux
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b1808e4..ee6c069 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -649,6 +649,10 @@ ENDIF (WIN32 AND NOT CYGWIN)
IF (WIN32 AND NOT CYGWIN)
OPTION (HDF5_ENABLE_THREADSAFE "Enable Threadsafety" OFF)
IF (HDF5_ENABLE_THREADSAFE)
+ # check for unsupported options
+ IF (HDF5_ENABLE_PARALLEL)
+ MESSAGE (FATAL " **** Parallel and Threadsafe options are mutually exclusive **** ")
+ ENDIF (HDF5_ENABLE_PARALLEL)
SET (H5_HAVE_WIN_THREADS 1)
SET (H5_HAVE_THREADSAFE 1)
ENDIF (HDF5_ENABLE_THREADSAFE)
@@ -759,6 +763,10 @@ ENDIF (EXISTS "${HDF5_SOURCE_DIR}/examples" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}
IF (EXISTS "${HDF5_SOURCE_DIR}/c++" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/c++")
OPTION (HDF5_BUILD_CPP_LIB "Build HDF5 C++ Library" OFF)
IF (HDF5_BUILD_CPP_LIB)
+ # check for unsupported options
+ IF (HDF5_ENABLE_PARALLEL)
+ MESSAGE (FATAL " **** Parallel and C++ options are mutually exclusive **** ")
+ ENDIF (HDF5_ENABLE_PARALLEL)
ADD_SUBDIRECTORY (${HDF5_SOURCE_DIR}/c++ ${PROJECT_BINARY_DIR}/c++)
ENDIF (HDF5_BUILD_CPP_LIB)
ENDIF (EXISTS "${HDF5_SOURCE_DIR}/c++" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/c++")