Use the C++ compiler instead of the C compiler.

Note using clang++ to build C code as C++ without also providing `-x c++` gives a deprecation warning.
This commit is contained in:
Pentarctagon 2022-03-13 18:38:12 -05:00
parent 04181d7de8
commit 9282828f58
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0

View file

@ -88,6 +88,8 @@ if(WIN32)
set(wesnoth_game_sources ${wesnoth_game_sources} desktop/windows_tray_notification.cpp desktop/windows_battery_info.cpp)
endif()
set_source_files_properties(${lua_sources} PROPERTIES LANGUAGE CXX)
# We explicitly want lua compiled as C++ version
if(MSVC)
set_source_files_properties(${lua_sources} PROPERTIES COMPILE_FLAGS "/FI\"${wesnoth_lua_config}\"")