From cdbb694c2aa2b67d5cdc1ba841a69bcdbfdf3061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yao=20Wei=20Tjong=20=E5=A7=9A=E4=BC=9F=E5=BF=A0?= Date: Sat, 18 Feb 2017 23:08:38 +0800 Subject: [PATCH] Bake 'SDL_USE_IME' compiler define into SDL config header. --- Source/ThirdParty/SDL/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ThirdParty/SDL/CMakeLists.txt b/Source/ThirdParty/SDL/CMakeLists.txt index 20489746ec..0b2267a2d3 100644 --- a/Source/ThirdParty/SDL/CMakeLists.txt +++ b/Source/ThirdParty/SDL/CMakeLists.txt @@ -1013,7 +1013,7 @@ 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 @@ -1021,7 +1021,7 @@ elseif(UNIX) # Urho3D - at this point both UNIX and UNIX_SYS should be equiva 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