Skip to content

Commit 49e06ca

Browse files
committed
fix building luabin with mingw
1 parent a3a13e3 commit 49e06ca

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17")
88
add_definitions(-D_MT -D_CPPUNWIND -DPURE_DYNAMIC_CAST -DDECLARE_SPECIALIZATION -DM_NOSTDCONTAINERS_EXT -DUSE_OGL)
99

1010
find_package(Lua51 REQUIRED)
11+
if (NOT WIN32)
1112
find_package(OpenSSL REQUIRED)
1213
find_package(Theora REQUIRED)
1314
find_package(OGG REQUIRED)
1415
find_package(SDL2 REQUIRED)
1516
find_package(LZO REQUIRED)
1617
find_package(JPEG REQUIRED)
18+
endif()
1719

1820
include_directories(${LUA_INCLUDE_DIR})
1921
include_directories(${CMAKE_SOURCE_DIR} {CMAKE_SOURCE_DIR}/Common ${CMAKE_SOURCE_DIR}/Externals ${CMAKE_SOURCE_DIR}/Externals/gli/external/glm ${CMAKE_SOURCE_DIR}/../sdk/include/loki)

Externals/luabind

src/Common/PlatformLinux.inl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,7 @@ typedef dirent DirEntryType;
248248
fprintf(stderr, "STUBBED: %s in %s, line %d.\n", txt, __FILE__, __LINE__); \
249249
} \
250250
} while (0)
251+
252+
#if __EXCEPTIONS
253+
#define _CPPUNWIND 1
254+
#endif

0 commit comments

Comments
 (0)