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