Skip to content
Snippets Groups Projects
Commit fa2aef48 authored by Dan Lipsa's avatar Dan Lipsa Committed by Code Review
Browse files

Merge topic 'update-hdf5' into master

4bcf0dc2 Prefix BUILD_STATIC_EXECS with HDF5 and make it advanced.
parents 96db5108 4bcf0dc2
No related branches found
No related tags found
No related merge requests found
......@@ -297,13 +297,14 @@ endif (BUILD_SHARED_LIBS)
#-----------------------------------------------------------------------------
# Option to Build Static executables
#-----------------------------------------------------------------------------
option (BUILD_STATIC_EXECS "Build Static Executabless" OFF)
if (BUILD_STATIC_EXECS)
option (HDF5_BUILD_STATIC_EXECS "Build Static Executabless" OFF)
mark_as_advanced(HDF5_BUILD_STATIC_EXECS)
if (HDF5_BUILD_STATIC_EXECS)
if (NOT WIN32)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
endif (NOT WIN32)
endif (BUILD_STATIC_EXECS)
endif (HDF5_BUILD_STATIC_EXECS)
#-----------------------------------------------------------------------------
# Option to use code coverage
......@@ -888,7 +889,7 @@ if (EXISTS "${HDF5_SOURCE_DIR}/hl" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/hl")
endif (EXISTS "${HDF5_SOURCE_DIR}/hl" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/hl")
IF (CMAKE_SYSTEM_NAME MATCHES Linux AND BUILD_STATIC_EXECS)
IF (CMAKE_SYSTEM_NAME MATCHES Linux AND HDF5_BUILD_STATIC_EXECS)
# fix a link error caused by
# warning: Using 'getpwuid' in statically linked applications
# requires at runtime the shared libraries from the glibc version
......
......@@ -25,7 +25,7 @@ Compiling Options:
AM_CPPFLAGS: @AM_CPPFLAGS@
Shared Libraries: @H5_ENABLE_SHARED_LIB@
Static Libraries: @H5_ENABLE_STATIC_LIB@
Statically Linked Executables: @BUILD_STATIC_EXECS@
Statically Linked Executables: @HDF5_BUILD_STATIC_EXECS@
LDFLAGS: @CMAKE_SHARED_LINKER_FLAGS@
AM_LDFLAGS: @AM_LDFLAGS@
Extra libraries: @LINK_LIBS@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment