Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Bake 'SDL_USE_IME' compiler define into SDL config header.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitjong committed Feb 19, 2017
1 parent 342599a commit cdbb694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ThirdParty/SDL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1013,15 +1013,15 @@ elseif(UNIX) # Urho3D - at this point both UNIX and UNIX_SYS should be equiva
set(HAVE_IBUS_IBUS_H TRUE)
include_directories(${IBUS_H_INCLUDE_DIRS} ${GLIB_H_INCLUDE_DIRS} ${GLIB_CONFIG_H_INCLUDE_DIRS})
list(APPEND EXTRA_LIBS ibus-1.0)
add_definitions (-DSDL_USE_IME)
set (SDL_USE_IME 1)
endif ()

# Urho3D - bug fix - use find_path() to detect fcitx's header file so it works for both native and cross-compiling builds
find_path (FCITX_H_INCLUDE_DIRS fcitx/frontend.h)
if (FCITX_H_INCLUDE_DIRS)
set (HAVE_FCITX_FRONTEND_H TRUE)
include_directories (${FCITX_H_INCLUDE_DIRS})
add_definitions (-DSDL_USE_IME)
set (SDL_USE_IME 1)
endif ()

# Urho3D - bug fix - moved below logic from generic Unix block to Linux-specific block
Expand Down

0 comments on commit cdbb694

Please sign in to comment.