浏览代码

Bake 'SDL_USE_IME' compiler define into SDL config header.

Yao Wei Tjong 姚伟忠 8 年之前
父节点
当前提交
cdbb694c2a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/ThirdParty/SDL/CMakeLists.txt

+ 2 - 2
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)
       set(HAVE_IBUS_IBUS_H TRUE)
       include_directories(${IBUS_H_INCLUDE_DIRS} ${GLIB_H_INCLUDE_DIRS} ${GLIB_CONFIG_H_INCLUDE_DIRS})
       include_directories(${IBUS_H_INCLUDE_DIRS} ${GLIB_H_INCLUDE_DIRS} ${GLIB_CONFIG_H_INCLUDE_DIRS})
       list(APPEND EXTRA_LIBS ibus-1.0)
       list(APPEND EXTRA_LIBS ibus-1.0)
-      add_definitions (-DSDL_USE_IME)
+      set (SDL_USE_IME 1)
     endif ()
     endif ()
 
 
     # Urho3D - bug fix - use find_path() to detect fcitx's header file so it works for both native and cross-compiling builds
     # 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)
     if (FCITX_H_INCLUDE_DIRS)
       set (HAVE_FCITX_FRONTEND_H TRUE)
       set (HAVE_FCITX_FRONTEND_H TRUE)
       include_directories (${FCITX_H_INCLUDE_DIRS})
       include_directories (${FCITX_H_INCLUDE_DIRS})
-      add_definitions (-DSDL_USE_IME)
+      set (SDL_USE_IME 1)
     endif ()
     endif ()
 
 
     # Urho3D - bug fix - moved below logic from generic Unix block to Linux-specific block
     # Urho3D - bug fix - moved below logic from generic Unix block to Linux-specific block