]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Group check_include_file together in CMakeLists.txt.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Tue, 12 May 2020 13:24:01 +0000 (09:24 -0400)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 30 May 2020 19:25:18 +0000 (21:25 +0200)
CMakeLists.txt

index 82eb06012f8e90f1f34b931a21d1920e7c922fd5..cdf74eff76156890a5e49b70943e1a78e236d75b 100644 (file)
@@ -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
 #
@@ -274,6 +269,15 @@ if(WITH_CODE_COVERAGE)
     endif()
 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
 #
@@ -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)