Skip to content

Commit

Permalink
Use the C++ compiler instead of the C compiler.
Browse files Browse the repository at this point in the history
Note using clang++ to build C code as C++ without also providing `-x c++` gives a deprecation warning.
  • Loading branch information
Pentarctagon committed Mar 13, 2022
1 parent 04181d7 commit 9282828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"")
Expand Down

0 comments on commit 9282828

Please sign in to comment.