Skip to content

Commit

Permalink
[fix] lua plugin requires /bigobj with msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Nov 19, 2023
1 parent 966014a commit 76ea158
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iolite_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ list(APPEND PLUGINS IoliteLuaPlugin)
target_compile_definitions(IoliteLuaPlugin PUBLIC SOL_LUAJIT=1 SOL_ALL_SAFETIES_ON=1)
target_link_libraries(IoliteLuaPlugin ${LUA_JIT_LIBRARIES})

if(MSVC)
target_compile_options(IoliteLuaPlugin PUBLIC "/bigobj")
endif()

# Terrain plugin
add_library(IoliteTerrainPlugin SHARED
terrain_plugin/terrain_plugin.cpp
Expand Down

0 comments on commit 76ea158

Please sign in to comment.