summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@solidstatenetworks.com>2020-05-12 09:24:01 -0400
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-05-30 21:25:18 +0200
commitd4b5542d6655a0ea98d1b25ace7896bedebba787 (patch)
tree2dd0d85cba95b7d62593f099468a2f2ab589fd09
parent08c8e6b2a315f87be1558b55dfaf42a5390e4ac6 (diff)
downloadProject-Tick-d4b5542d6655a0ea98d1b25ace7896bedebba787.tar.gz
Project-Tick-d4b5542d6655a0ea98d1b25ace7896bedebba787.zip
Group check_include_file together in CMakeLists.txt.
-rw-r--r--CMakeLists.txt19
1 files changed, 9 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82eb06012f..cdf74eff76 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,11 +69,6 @@ else()
add_feature_info(CMAKE_BUILD_TYPE 1 "Build type: ${CMAKE_BUILD_TYPE} (selected)")
endif()
-check_include_file(sys/types.h HAVE_SYS_TYPES_H)
-check_include_file(stdint.h HAVE_STDINT_H)
-check_include_file(stddef.h HAVE_STDDEF_H)
-check_include_file(sys/sdt.h HAVE_SYS_SDT_H)
-
#
# Options parsing
#
@@ -275,6 +270,15 @@ if(WITH_CODE_COVERAGE)
endif()
#
+# Check for stndard/system includes
+#
+check_include_file(sys/types.h HAVE_SYS_TYPES_H)
+check_include_file(stdint.h HAVE_STDINT_H)
+check_include_file(stddef.h HAVE_STDDEF_H)
+check_include_file(sys/sdt.h HAVE_SYS_SDT_H)
+check_include_file(unistd.h Z_HAVE_UNISTD_H)
+
+#
# Check to see if we have large file support
#
set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1 -D__USE_LARGEFILE64)
@@ -303,11 +307,6 @@ if(NOT HAVE_STRERROR)
add_definitions(-DNO_STRERROR)
endif()
-#
-# Check for unistd.h and stdarg.h
-#
-check_include_file(unistd.h Z_HAVE_UNISTD_H)
-
if(WITH_MSAN AND WITH_SANITIZERS)
message(FATAL_ERROR "Memory sanitizer is incompatible with address sanitizer")
elseif(WITH_MSAN)