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}\"")