mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
Identify some options as advanced (#2717)
* Identify some options as advanced Add explicit option statement to set default for CMake option * Revert advanced setting for file locks
This commit is contained in:
parent
526d0d70e6
commit
2ecfba97dd
@ -240,6 +240,7 @@ if (MINGW OR NOT WINDOWS)
|
||||
set (HDF_EXTRA_C_FLAGS ${HDF_EXTRA_C_FLAGS} -D_GNU_SOURCE)
|
||||
|
||||
option (HDF_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON)
|
||||
mark_as_advanced (HDF_ENABLE_LARGE_FILE)
|
||||
if (HDF_ENABLE_LARGE_FILE AND NOT DEFINED TEST_LFS_WORKS_RUN)
|
||||
set (msg "Performing TEST_LFS_WORKS")
|
||||
try_run (TEST_LFS_WORKS_RUN TEST_LFS_WORKS_COMPILE
|
||||
@ -568,6 +569,7 @@ endif ()
|
||||
# Option for --enable-strict-format-checks
|
||||
#-----------------------------------------------------------------------------
|
||||
option (HDF5_STRICT_FORMAT_CHECKS "Whether to perform strict file format checks" OFF)
|
||||
mark_as_advanced (HDF5_STRICT_FORMAT_CHECKS)
|
||||
if (HDF5_STRICT_FORMAT_CHECKS)
|
||||
set (${HDF_PREFIX}_STRICT_FORMAT_CHECKS 1)
|
||||
endif ()
|
||||
@ -580,6 +582,7 @@ MARK_AS_ADVANCED (HDF5_STRICT_FORMAT_CHECKS)
|
||||
# support denormalized floating values) to maximize speed.
|
||||
#-----------------------------------------------------------------------------
|
||||
option (HDF5_WANT_DATA_ACCURACY "IF data accuracy is guaranteed during data conversions" ON)
|
||||
mark_as_advanced (HDF5_WANT_DATA_ACCURACY)
|
||||
if (HDF5_WANT_DATA_ACCURACY)
|
||||
set (${HDF_PREFIX}_WANT_DATA_ACCURACY 1)
|
||||
endif ()
|
||||
@ -592,6 +595,7 @@ MARK_AS_ADVANCED (HDF5_WANT_DATA_ACCURACY)
|
||||
# actually benefit little.
|
||||
#-----------------------------------------------------------------------------
|
||||
option (HDF5_WANT_DCONV_EXCEPTION "exception handling functions is checked during data conversions" ON)
|
||||
mark_as_advanced (HDF5_WANT_DCONV_EXCEPTION)
|
||||
if (HDF5_WANT_DCONV_EXCEPTION)
|
||||
set (${HDF_PREFIX}_WANT_DCONV_EXCEPTION 1)
|
||||
endif ()
|
||||
@ -601,6 +605,7 @@ MARK_AS_ADVANCED (HDF5_WANT_DCONV_EXCEPTION)
|
||||
# Check if they would like the function stack support compiled in
|
||||
#-----------------------------------------------------------------------------
|
||||
option (HDF5_ENABLE_CODESTACK "Enable the function stack tracing (for developer debugging)." OFF)
|
||||
mark_as_advanced (HDF5_ENABLE_CODESTACK)
|
||||
if (HDF5_ENABLE_CODESTACK)
|
||||
set (${HDF_PREFIX}_HAVE_CODESTACK 1)
|
||||
endif ()
|
||||
|
@ -84,6 +84,7 @@ macro (FILTER_OPTION plname)
|
||||
option (ENABLE_${plname} "Enable Library Building for ${plname} plugin" ON)
|
||||
if (ENABLE_${plname})
|
||||
option (HDF_${plname}_USE_EXTERNAL "Use External Library Building for ${PLUGIN_NAME} plugin" 0)
|
||||
mark_as_advanced (HDF_${plname}_USE_EXTERNAL)
|
||||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
set (HDF_${plname}_USE_EXTERNAL 1 CACHE BOOL "Use External Library Building for ${PLUGIN_NAME} plugin" FORCE)
|
||||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT")
|
||||
|
@ -64,6 +64,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
||||
# This should NOT be on by default as it can cause process issues.
|
||||
#-----------------------------------------------------------------------------
|
||||
option (HDF5_ENABLE_BUILD_DIAGS "Enable color and URL extended diagnostic messages" OFF)
|
||||
mark_as_advanced (HDF5_ENABLE_BUILD_DIAGS)
|
||||
if (HDF5_ENABLE_BUILD_DIAGS)
|
||||
message (STATUS "... default color and URL extended diagnostic messages enabled")
|
||||
else ()
|
||||
|
@ -73,6 +73,8 @@ endmacro ()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent)
|
||||
option (DISABLE_PDB_FILES "Do not install PDB files" OFF)
|
||||
mark_as_advanced (DISABLE_PDB_FILES)
|
||||
if (WIN32 AND MSVC AND NOT DISABLE_PDB_FILES)
|
||||
get_target_property (target_type ${libtarget} TYPE)
|
||||
if (${libtype} MATCHES "SHARED")
|
||||
|
@ -47,6 +47,7 @@ endmacro ()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
option (BUILD_STATIC_CRT_LIBS "Build With Static CRT Libraries" OFF)
|
||||
mark_as_advanced (BUILD_STATIC_CRT_LIBS)
|
||||
if (BUILD_STATIC_CRT_LIBS)
|
||||
TARGET_STATIC_CRT_FLAGS ()
|
||||
endif ()
|
||||
|
@ -763,6 +763,8 @@ BUILD_SHARED_LIBS "Build Shared Libraries" ON
|
||||
BUILD_STATIC_LIBS "Build Static Libraries" ON
|
||||
BUILD_STATIC_EXECS "Build Static Executables" OFF
|
||||
BUILD_TESTING "Build HDF5 Unit Testing" ON
|
||||
if (WINDOWS)
|
||||
DISABLE_PDB_FILES "Do not install PDB files" OFF
|
||||
|
||||
---------------- HDF5 Build Options ---------------------
|
||||
HDF5_BUILD_CPP_LIB "Build HDF5 C++ Library" OFF
|
||||
|
Loading…
x
Reference in New Issue
Block a user