Skip to content

Commit

Permalink
Fix Lua for CMake with clang
Browse files Browse the repository at this point in the history
When using CMake with clang, the wesnoth_lua_config.h was omitted causing problems with exception handling (among other unreported issues).

This closes Issue #1669
  • Loading branch information
GregoryLundberg committed Jul 25, 2017
1 parent c6fa56e commit 4b39f14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Expand Up @@ -283,10 +283,10 @@ if(UNIX AND NOT CMAKE_COMPILER_IS_GNUCXX)
# version of cmake will be able to this for us.
#
# Also silence some Clang specific warnings due to extra parenthesis in if statements when comparing instead
set_source_files_properties(
${libwesnoth-lua_STAT_SRC}
PROPERTIES COMPILE_FLAGS
"-x c++ -Wno-parentheses-equality"
set_property(SOURCE
SOURCE ${libwesnoth-lua_STAT_SRC}
APPEND_STRING PROPERTY COMPILE_FLAGS
" -x c++ -Wno-parentheses-equality"
)
endif(UNIX AND NOT CMAKE_COMPILER_IS_GNUCXX)

Expand Down

0 comments on commit 4b39f14

Please sign in to comment.