Add compiler settings like C standard and warning level.

This commit is contained in:
Danila Fedorin 2016-12-21 13:26:26 -08:00
parent 440120f1da
commit 5f58ae8a39
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 2.7)
project(libds)
set_property(GLOBAL PROPERTY C_STANDARD 90)
ADD_COMPILE_OPTIONS(-pedantic -Wall)
include_directories(include)
add_library(ds src/libds.c src/vec.c src/ht.c)

View File

@ -126,4 +126,4 @@ int ht_foreach(ht* ht, void* data, compare_func compare, foreach_func foreach, .
}
}
return return_code;
}
}