From dcce9ae5991a2bb8310c1fd9ba446cd91c999592 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 4 Oct 2019 13:06:13 -0400 Subject: [PATCH] Add quotes around dfhack_llimits.h include for MSVC Fixes #1455 --- depends/lua/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depends/lua/CMakeLists.txt b/depends/lua/CMakeLists.txt index fd3a59c08..17bb2d73e 100644 --- a/depends/lua/CMakeLists.txt +++ b/depends/lua/CMakeLists.txt @@ -96,7 +96,8 @@ ADD_LIBRARY ( lua SHARED ${SRC_LIBLUA} ) TARGET_LINK_LIBRARIES ( lua ${LIBS}) if (MSVC) - target_compile_options(lua PRIVATE /FI dfhack_llimits.h) + # need quotes to prevent /FI from being stripped: https://github.com/DFHack/dfhack/issues/1455 + target_compile_options(lua PRIVATE "/FI dfhack_llimits.h") else () target_compile_options(lua PRIVATE -include dfhack_llimits.h) endif ()