From 9282828f583f245b7d29c92a1052695e088e54ee Mon Sep 17 00:00:00 2001 From: Pentarctagon Date: Sun, 13 Mar 2022 18:38:12 -0500 Subject: [PATCH] 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. --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 02742f218d01..32c0b08c7b1b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}\"")