Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 20, 2024
1 parent 44534c4 commit b6e1078
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ if(MSVC)
# - warning C4267: 'function': conversion from 'size_t' to 'lua_Integer', possible loss of data
set_source_files_properties(${LUA_SOURCES} PROPERTIES COMPILE_FLAGS "/wd4244 /wd4267")
endif()

# Disable C++ exceptions and RTTI
target_compile_options(${PROJECT_NAME} PRIVATE /EHs-c- /GR-)
add_definitions(-D_HAS_EXCEPTIONS=0)
else()
option(QUAKE_SEARCH_USERDIRS "Search user directories for data" OFF)

Expand All @@ -346,6 +350,9 @@ else()
endif()

target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-trigraphs)

# Disable C++ exceptions and RTTI
target_compile_options(${PROJECT_NAME} PRIVATE -fno-exceptions -fno-rtti)
endif()

target_include_directories(${PROJECT_NAME} PRIVATE Quake ${LUA_DIR} ${IMGUI_DIR})
Expand Down

0 comments on commit b6e1078

Please sign in to comment.