Added extra warnings, moved -std=c99 to CMAKE_C_FLAGS.
This commit is contained in:
parent
8abb0a9037
commit
9486ffae81
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ add_library(tox SHARED
|
||||||
src/tox-weechat-chats.c
|
src/tox-weechat-chats.c
|
||||||
src/tox-weechat-friend-requests.c
|
src/tox-weechat-friend-requests.c
|
||||||
)
|
)
|
||||||
add_definitions(-std=c99 -D_GNU_SOURCE)
|
add_definitions(-D_GNU_SOURCE)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra -Werror-implicit-function-declaration -Wno-unused-parameter")
|
||||||
|
|
||||||
target_link_libraries(tox toxcore)
|
target_link_libraries(tox toxcore)
|
||||||
|
|
||||||
# remove lib prefix (libtox.so -> tox.so)
|
# remove lib prefix (libtox.so -> tox.so)
|
||||||
|
|
Loading…
Reference in a new issue