Mercurial > hg > CbC > old > akasha
changeset 21:2112f0024537
Downgrade cmake minimum versions for CentOS7
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Mar 2016 17:27:53 +0900 |
parents | 54881df6eecb |
children | 5b3b206edea2 |
files | src/CMakeLists.txt src/insert_verification/CMakeLists.txt src/insert_verification/akashaLLRBContext.c src/insert_verification/include/akashaLLRBContext.h |
diffstat | 4 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/CMakeLists.txt Tue Mar 29 17:26:29 2016 +0900 +++ b/src/CMakeLists.txt Tue Mar 29 17:27:53 2016 +0900 @@ -1,11 +1,11 @@ -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 2.8) # output compile log set(CMAKE_VERBOSE_MAKEFILE 1) # set compiler set(CMAKE_C_COMPILER $ENV{CBC_COMPILER}) -add_definitions("-Wall -g -O0 --save-temps") +add_definitions("-Wall -g -O2 --save-temps") include_directories(include)
--- a/src/insert_verification/CMakeLists.txt Tue Mar 29 17:26:29 2016 +0900 +++ b/src/insert_verification/CMakeLists.txt Tue Mar 29 17:27:53 2016 +0900 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 2.8) # import LLRB from Gears set(llrb_path $ENV{GEARS_PATH}/src/llrb)
--- a/src/insert_verification/akashaLLRBContext.c Tue Mar 29 17:26:29 2016 +0900 +++ b/src/insert_verification/akashaLLRBContext.c Tue Mar 29 17:27:53 2016 +0900 @@ -109,8 +109,8 @@ tree->current = 0; tree->deleted = 0; - context->node_stack = stack_init(sizeof(struct Node*), 100); - context->code_stack = stack_init(sizeof(enum Code), 100); + context->node_stack = stack_init(sizeof(struct Node*), 1000); + context->code_stack = stack_init(sizeof(enum Code), 1000); context->next = next; goto initIterator_stub(context);
--- a/src/insert_verification/include/akashaLLRBContext.h Tue Mar 29 17:26:29 2016 +0900 +++ b/src/insert_verification/include/akashaLLRBContext.h Tue Mar 29 17:27:53 2016 +0900 @@ -1,8 +1,8 @@ /* Context definition for llrb example */ #include "stack.h" -#define ALLOCATE_SIZE 10000000 -#define LIMIT_OF_VERIFICATION_SIZE 7 +#define ALLOCATE_SIZE 1000000000 +#define LIMIT_OF_VERIFICATION_SIZE 8 enum Code { ShowTree,