Reverts PR 906 and 907 due to binary compatibility issues (#918)
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user