瀏覽代碼

minor fixes

* include <dmmlib/config.h> in dmmstats.h
* fix setting CMake variables for splitting and coalescing
Ioannis Koutras 12 年之前
父節點
當前提交
14be1635af
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 2
      DefineOptions.cmake
  2. 1 0
      include/dmmlib/dmmstats.h

+ 2 - 2
DefineOptions.cmake

@@ -15,8 +15,8 @@ set(FITTING_POLICY "best" CACHE STRING "Choose the fitting policy in freelist-or
 
 set(GOOD_FIT_PERCENTAGE 0.8 CACHE DOUBLE "Choose the good-fit percentage")
 
-set(WITH_COALESCING "never" "Build with coalescing support")
-set(WITH_SPLITTING "never" "Build with splitting support")
+set(WITH_COALESCING "never" CACHE STRING "Build with coalescing support")
+set(WITH_SPLITTING "never" CACHE STRING "Build with splitting support")
 option(FREELIST_COALESCE_AFTER_SPLIT "Try to coalesce blocks after split" OFF)
 
 # Bitmap Settings

+ 1 - 0
include/dmmlib/dmmstats.h

@@ -24,6 +24,7 @@
 
 #ifndef DMMSTATS_H
 #define DMMSTATS_H
+#include <dmmlib/config.h>
 
 #include <stddef.h> /* for size_t */
 #include <inttypes.h>