Fix cmake compiling with spaces in directory names.
This commit is contained in:
parent
195eb0ce73
commit
5fed276ad7
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ set_source_files_properties(${lua_STAT_SRC} PROPERTIES LANGUAGE CXX)
|
|||
# Inject a header into the Lua sources for Wesnoth-specific changes
|
||||
# makedepend won't see it so we have to specifically add it as a dependency.
|
||||
file(GLOB wesnoth_lua_config wesnoth_lua_config.h)
|
||||
set_source_files_properties(${lua_STAT_SRC} PROPERTIES COMPILE_FLAGS "-include ${wesnoth_lua_config}")
|
||||
set_source_files_properties(${lua_STAT_SRC} PROPERTIES COMPILE_FLAGS "-include \"${wesnoth_lua_config}\"")
|
||||
set_source_files_properties(${lua_STAT_SRC} PROPERTIES OBJECT_DEPENDS ${wesnoth_lua_config})
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
|
|
Loading…
Add table
Reference in a new issue