cmake: Disable -Wno-old-style-cast on Lua unit tests

Otherwise strict compilation fails due to code using macros such as
lua_number2int() which contain C-style casts.
This commit is contained in:
Ignacio R. Morelle 2016-04-18 21:56:55 -03:00
parent 6bc34aea7c
commit 20f67bf4a0

View File

@ -393,6 +393,7 @@ set_source_files_properties(
desktop/notifications.cpp
network.cpp
network_worker.cpp
tests/test_lua.cpp
PROPERTIES
COMPILE_FLAGS "${CXX_FLAG_NO_OLD_STYLE_CAST}"
)