# # # patch "CMakeLists.txt" # from [a84f18622bc4fa176f2f71f6f636f52d71cb299e] # to [dd8e70f9086aef6320f1529da7a7213c93e5f1fa] # # patch "config.h.cmake.in" # from [f0907948bd7357de4320600503ba96163ed1518d] # to [6efdaf20ac31fba95762009c5e2b20da7ff3edef] # ============================================================ --- CMakeLists.txt a84f18622bc4fa176f2f71f6f636f52d71cb299e +++ CMakeLists.txt dd8e70f9086aef6320f1529da7a7213c93e5f1fa @@ -1,8 +1,14 @@ PROJECT(MONOTONE) +SET(CMAKE_MODULE_PATH + ${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules) + ############################################################################ # a few simple configure-y bits; stolen from configure.ac ############################################################################ +INCLUDE(CheckCConst) +INCLUDE(CheckCInline) + IF (WIN32) SET(os_err_t unsigned int) ELSE (WIN32) ============================================================ --- config.h.cmake.in f0907948bd7357de4320600503ba96163ed1518d +++ config.h.cmake.in 6efdaf20ac31fba95762009c5e2b20da7ff3edef @@ -228,12 +228,12 @@ #cmakedefine VERSION ${VERSION} /* Define to empty if `const' does not conform to ANSI C. */ -#cmakedefine const ${const} +#cmakedefine const ${CMAKE_C_CONST} /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus -#cmakedefine inline ${inline} +#cmakedefine inline ${CMAKE_C_INLINE} #endif /* Define to `long int' if does not define. */