Skip to content
Snippets Groups Projects
Commit 5affebbd authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Don't search for malloc.h, stdint.h and memory.

We assume anyway that stdint.h and memrory are provided. The
according macros are never used. They were probably provided
to stay as compatible to Autotools as possible.
This fixes FS#1605.
parent c2f84f9e
No related branches found
No related tags found
No related merge requests found
...@@ -597,14 +597,6 @@ macro(dune_project) ...@@ -597,14 +597,6 @@ macro(dune_project)
include(DuneCxaDemangle) include(DuneCxaDemangle)
# search for headers
include(CheckIncludeFile)
include(CheckIncludeFileCXX)
check_include_file("malloc.h" HAVE_MALLOC_H)
check_include_file("stdint.h" HAVE_STDINT_H)
check_include_file_cxx("memory" HAVE_MEMORY)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -DHAVE_MEMORY=${HAVE_MEMORY}")
# set include path and link path for the current project. # set include path and link path for the current project.
include_directories("${CMAKE_BINARY_DIR}") include_directories("${CMAKE_BINARY_DIR}")
include_directories("${CMAKE_SOURCE_DIR}") include_directories("${CMAKE_SOURCE_DIR}")
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# Sets the following variables # Sets the following variables
# HAVE_SYS_MMAN_H # HAVE_SYS_MMAN_H
# HAVE_MPROTECT # HAVE_MPROTECT
include(CheckIncludeFile)
check_include_file("sys/mman.h" HAVE_SYS_MMAN_H) check_include_file("sys/mman.h" HAVE_SYS_MMAN_H)
include(CheckCSourceCompiles) include(CheckCSourceCompiles)
check_c_source_compiles(" check_c_source_compiles("
......
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