Jelajahi Sumber

Move the stdint.h check to the right place

Matt Clarkson 10 tahun lalu
induk
melakukan
11a748842b
2 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 0
      CMakeLists.txt
  2. 0 4
      src/CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -16,6 +16,7 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
 # Load in the needed CMake modules
+include(CheckIncludeFiles)
 include(CheckCCompilerFlag)
 include(CheckCXXCompilerFlag)
 include(AddCCompilerFlag)
@@ -315,6 +316,9 @@ if (CIVETWEB_ENABLE_CXX)
   add_cxx_compiler_flag(--coverage COVERAGE)
 endif()
 
+# Check the headers we need
+check_include_files(stdint.h HAVE_STDINT)
+
 # Set up the definitions
 if (${CMAKE_BUILD_TYPE} MATCHES "[Dd]ebug")
   add_definitions(-DDEBUG)

+ 0 - 4
src/CMakeLists.txt

@@ -1,7 +1,3 @@
-# Check the headers we need
-include(CheckIncludeFiles)
-check_include_files(stdint.h HAVE_STDINT)
-
 # The C API library
 add_library(c-library civetweb.c)
 set_target_properties(c-library PROPERTIES