From 709464301a058e8d44407d94e00919b926721f34 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Fri, 24 Apr 2020 13:05:58 -0500 Subject: HDFFV-10576 add Option name to Error Message --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d6e7a2..922e814 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -777,28 +777,28 @@ if (HDF5_ENABLE_THREADSAFE) endif () if (HDF5_ENABLE_PARALLEL) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** parallel and thread-safety options are not supported **** ") + message (FATAL_ERROR " **** parallel and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported parallel and thread-safety options **** ") endif () endif () if (HDF5_BUILD_FORTRAN) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** Fortran and thread-safety options are not supported **** ") + message (FATAL_ERROR " **** Fortran and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported Fortran and thread-safety options **** ") endif () endif () if (HDF5_BUILD_CPP_LIB) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** C++ and thread-safety options are not supported **** ") + message (FATAL_ERROR " **** C++ and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported C++ and thread-safety options **** ") endif () endif () if (HDF5_BUILD_HL_LIB) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** HL and thread-safety options are not supported **** ") + message (FATAL_ERROR " **** HL and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported HL and thread-safety options **** ") endif () @@ -1014,7 +1014,7 @@ if (EXISTS "${HDF5_SOURCE_DIR}/c++" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/c++") # check for unsupported options if (HDF5_ENABLE_PARALLEL) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** Parallel and C++ options are mutually exclusive **** ") + message (FATAL_ERROR " **** Parallel and C++ options are mutually exclusive, use ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported Parallel and C++ options **** ") endif () -- cgit v0.12 From 64fa9327d008c0c3d17c9489c32d99e0d514f88e Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Fri, 24 Apr 2020 16:23:28 -0500 Subject: Add "override with" to error message --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 922e814..b559446 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -777,28 +777,28 @@ if (HDF5_ENABLE_THREADSAFE) endif () if (HDF5_ENABLE_PARALLEL) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** parallel and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") + message (FATAL_ERROR " **** parallel and thread-safety options are not supported, override with ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported parallel and thread-safety options **** ") endif () endif () if (HDF5_BUILD_FORTRAN) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** Fortran and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") + message (FATAL_ERROR " **** Fortran and thread-safety options are not supported, override with ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported Fortran and thread-safety options **** ") endif () endif () if (HDF5_BUILD_CPP_LIB) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** C++ and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") + message (FATAL_ERROR " **** C++ and thread-safety options are not supported, override with ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported C++ and thread-safety options **** ") endif () endif () if (HDF5_BUILD_HL_LIB) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** HL and thread-safety options are not supported, use ALLOW_UNSUPPORTED option **** ") + message (FATAL_ERROR " **** HL and thread-safety options are not supported, override with ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported HL and thread-safety options **** ") endif () @@ -1014,7 +1014,7 @@ if (EXISTS "${HDF5_SOURCE_DIR}/c++" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/c++") # check for unsupported options if (HDF5_ENABLE_PARALLEL) if (NOT ALLOW_UNSUPPORTED) - message (FATAL_ERROR " **** Parallel and C++ options are mutually exclusive, use ALLOW_UNSUPPORTED option **** ") + message (FATAL_ERROR " **** Parallel and C++ options are mutually exclusive, override with ALLOW_UNSUPPORTED option **** ") else () message (STATUS " **** Allowing unsupported Parallel and C++ options **** ") endif () -- cgit v0.12