Reverts PR 906 and 907 due to binary compatibility issues (#918)

This commit is contained in:
Dana Robinson
2021-08-17 12:55:18 -07:00
committed by GitHub
parent 2bca2ca6f1
commit c0ef1fd6de
79 changed files with 2515 additions and 2420 deletions

View File

@@ -32,6 +32,17 @@ endif ()
include (CheckIncludeFileCXX)
include (TestForSTDNamespace)
# IF the c compiler found stdint, check the C++ as well. On some systems this
# file will be found by C but not C++, only do this test IF the C++ compiler
# has been initialized (e.g. the project also includes some c++)
if (${HDF_PREFIX}_HAVE_STDINT_H AND CMAKE_CXX_COMPILER_LOADED)
CHECK_INCLUDE_FILE_CXX ("stdint.h" ${HDF_PREFIX}_HAVE_STDINT_H_CXX)
if (NOT ${HDF_PREFIX}_HAVE_STDINT_H_CXX)
set (${HDF_PREFIX}_HAVE_STDINT_H "" CACHE INTERNAL "Have includes HAVE_STDINT_H")
set (USE_INCLUDES ${USE_INCLUDES} "stdint.h")
endif ()
endif ()
# For other CXX specific tests, use this MACRO.
macro (HDF_CXX_FUNCTION_TEST OTHER_TEST)
if (NOT DEFINED ${OTHER_TEST})