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:
parent
04181d7de8
commit
9282828f58
1 changed files with 2 additions and 0 deletions
|
@ -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}\"")
|
||||
|
|
Loading…
Add table
Reference in a new issue