HDFFV-9755 Document BUILD_STATIC_EXECS

This commit is contained in:
Allen Byrne
2018-07-30 12:39:28 -05:00
parent 958cc1a969
commit b33ba00c9c
2 changed files with 6 additions and 1 deletions

View File

@@ -430,7 +430,7 @@ set (CMAKE_POSITION_INDEPENDENT_CODE ON)
#-----------------------------------------------------------------------------
# Option to Build Static executables
#-----------------------------------------------------------------------------
option (BUILD_STATIC_EXECS "Build Static Executabless" OFF)
option (BUILD_STATIC_EXECS "Build Static Executables" OFF)
if (BUILD_STATIC_EXECS)
if (NOT WIN32)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static")

View File

@@ -643,6 +643,11 @@ else ()
H5_DEFAULT_PLUGINDIR "/usr/local/hdf5/lib/plugin"
endif ()
NOTE:
The BUILD_STATIC_EXECS ("Build Static Executables") option is only valid
on some unix operating system. It adds the "-static" flag to cflags. This
flag is not available on windows and some modern linux systems will
ignore the flag.
========================================================================