Skip to content

Commit

Permalink
USE_IMGUI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 14, 2023
1 parent f5172e3 commit 4a65f89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE

if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
set_target_properties(${PROJECT_NAME} COMPILE_FLAGS "/MP /wd4996")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/MP /wd4996")

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
# Disable the following warnings, Lua files only
Expand All @@ -342,7 +342,7 @@ else()
target_compile_definitions(${PROJECT_NAME} PRIVATE DO_USERDIRS)
endif()

set_target_properties(${PROJECT_NAME} COMPILE_FLAGS "-Wall -Wno-trigraphs")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-Wall -Wno-trigraphs")
endif()

target_include_directories(${PROJECT_NAME} PRIVATE Quake ${LUA_DIR} ${CIMGUI_DIR} ${IMGUI_DIR})
Expand All @@ -352,7 +352,7 @@ if(APPLE)
target_compile_definitions(${PROJECT_NAME} PRIVATE MACOS_X_ACCELERATION_HACK)

# Disable a bunch of IOKit deprecation warnings
set_target_properties(${PROJECT_NAME} COMPILE_FLAGS "-Wno-deprecated-declarations")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations")
endif()

target_compile_definitions(${PROJECT_NAME} PRIVATE GL_SILENCE_DEPRECATION)
Expand All @@ -362,7 +362,7 @@ if(APPLE)
)

if(${CMAKE_GENERATOR} STREQUAL Xcode)
set_target_properties(${PROJECT_NAME} COMPILE_FLAGS "-Wno-shorten-64-to-32")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-Wno-shorten-64-to-32")
endif()

set(PLATFORM_SOURCE
Expand Down

0 comments on commit 4a65f89

Please sign in to comment.