Add quotes around dfhack_llimits.h include for MSVC

Fixes #1455
develop
lethosor 2019-10-04 13:06:13 -04:00
parent e8fcc8d5c0
commit dcce9ae599
1 changed files with 2 additions and 1 deletions

@ -96,7 +96,8 @@ ADD_LIBRARY ( lua SHARED ${SRC_LIBLUA} )
TARGET_LINK_LIBRARIES ( lua ${LIBS}) TARGET_LINK_LIBRARIES ( lua ${LIBS})
if (MSVC) 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 () else ()
target_compile_options(lua PRIVATE -include dfhack_llimits.h) target_compile_options(lua PRIVATE -include dfhack_llimits.h)
endif () endif ()