HDFFV-10576 add Option name to Error Message
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user