Skip to content

Commit

Permalink
Windows+Ninja: Fix build error due to trying to include " dfhack_llim…
Browse files Browse the repository at this point in the history
…its.h"

Ref DFHack#1455
  • Loading branch information
lethosor committed Oct 4, 2019
1 parent dcce9ae commit 8675ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depends/lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ ADD_LIBRARY ( lua SHARED ${SRC_LIBLUA} )
TARGET_LINK_LIBRARIES ( lua ${LIBS})

if (MSVC)
# need quotes to prevent /FI from being stripped: https://github.com/DFHack/dfhack/issues/1455
target_compile_options(lua PRIVATE "/FI dfhack_llimits.h")
# need no space to prevent /FI from being stripped: https://github.com/DFHack/dfhack/issues/1455
target_compile_options(lua PRIVATE "/FIdfhack_llimits.h")
else ()
target_compile_options(lua PRIVATE -include dfhack_llimits.h)
endif ()
Expand Down

0 comments on commit 8675ff6

Please sign in to comment.