* commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
52 lines
2.1 KiB
CMake
52 lines
2.1 KiB
CMake
#
|
|
# Copyright by The HDF Group.
|
|
# All rights reserved.
|
|
#
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
# the COPYING file, which can be found at the root of the source code
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
# If you do not have access to either file, you may request a copy from
|
|
# help@hdfgroup.org.
|
|
#
|
|
########################################################
|
|
# Include file for user options
|
|
########################################################
|
|
|
|
# To use this option, copy both the macro and option code
|
|
# into the root UserMacros.cmake file.
|
|
# OR add an include to the root UserMacros.cmake file:
|
|
# INCLUDE(path_to_file/WINDOWS_MT.cmake)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Option to Build with Static CRT libraries on Windows
|
|
#-------------------------------------------------------------------------------
|
|
macro (TARGET_STATIC_CRT_FLAGS)
|
|
if (MSVC AND NOT BUILD_SHARED_LIBS)
|
|
foreach (flag_var
|
|
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
|
|
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
|
|
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
|
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
|
|
if (${flag_var} MATCHES "/MD")
|
|
string (REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
|
endif ()
|
|
endforeach ()
|
|
foreach (flag_var
|
|
CMAKE_Fortran_FLAGS CMAKE_Fortran_FLAGS_DEBUG CMAKE_Fortran_FLAGS_RELEASE
|
|
CMAKE_Fortran_FLAGS_MINSIZEREL CMAKE_Fortran_FLAGS_RELWITHDEBINFO)
|
|
if (${flag_var} MATCHES "/libs:dll")
|
|
string (REGEX REPLACE "/libs:dll" "/libs:static" ${flag_var} "${${flag_var}}")
|
|
endif ()
|
|
endforeach ()
|
|
set (WIN_COMPILE_FLAGS "")
|
|
set (WIN_LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
|
|
endif ()
|
|
endmacro ()
|
|
|
|
#-----------------------------------------------------------------------------
|
|
option (BUILD_STATIC_CRT_LIBS "Build With Static CRT Libraries" OFF)
|
|
if (BUILD_STATIC_CRT_LIBS)
|
|
TARGET_STATIC_CRT_FLAGS ()
|
|
endif ()
|