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 03bee30 commit 028a0d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,6 @@ set(WINDOWS_SOURCES
Quake/net_wipx.h
Quake/pl_win.c
Quake/sys_sdl_win.c
)

set(WINDOWS_SOURCES
${WINDOWS_SOURCES}
Windows/QuakeSpasm.ico
Windows/QuakeSpasm.rc
)
Expand Down Expand Up @@ -355,7 +351,12 @@ else()
target_compile_definitions(${PROJECT_NAME} PRIVATE DO_USERDIRS)
endif()

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

# Disable C++ exceptions and RTTI
# target_compile_options() doesn't fit very well as GCC complains on every C file
# warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti")
endif()

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

0 comments on commit 028a0d0

Please sign in to comment.