DefineOptions.cmake 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. option(HAVE_LOCKS "Build with POSIX locking mechanisms" ON)
  2. option(WITH_EXAMPLES "Build with examples" OFF)
  3. option(WITH_MEMORY_SPACE_AWARENESS "Build with memory space awareness" OFF)
  4. option(WITH_KNOBS "Build with knobs support" OFF)
  5. option(WITH_STATIC_LIB "Build a static library" OFF)
  6. option(WITH_SHARED_LIB "Build a shared library" OFF)
  7. option(WITH_DOC "Build with documentation" OFF)
  8. set(NUM_HEAPS '0')
  9. set(WITH_COALESCING "never" "Build with coalescing support")
  10. option(P2012 "Build for P2012 runtime" OFF)
  11. option(LINUXTEST "Build a case for Linux" ON)
  12. if (P2012)
  13. set(HAVE_LOCKS OFF)
  14. set(WITH_MEMORY_SPACE_AWARENESS ON)
  15. set(WITH_STATIC_LIB ON)
  16. set(NUM_HEAPS '0')
  17. set(LINUXTEST OFF)
  18. endif (P2012)
  19. if (LINUXTEST)
  20. set(HAVE_LOCKS OFF)
  21. set(WITH_EXAMPLES ON)
  22. set(WITH_COALESCING "variable")
  23. set(MAX_COALESCE_SIZE 60000)
  24. set(WITH_SHARED_LIB ON)
  25. set(WITH_DOC ON)
  26. endif (LINUXTEST)
  27. if(WITH_COALESCING STREQUAL "fixed")
  28. set(COALESCING_FIXED ON)
  29. elseif(WITH_COALESCING STREQUAL "variable")
  30. set(WITH_KNOBS ON)
  31. set(COALESCING_VARIABLE ON)
  32. endif(WITH_COALESCING STREQUAL "fixed")