Browse Source

Use CMake path instead of native path. Closes #188.

Yao Wei Tjong 姚伟忠 12 years ago
parent
commit
0c41be144f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/ThirdParty/LuaJIT/CMakeLists.txt

+ 2 - 2
Source/ThirdParty/LuaJIT/CMakeLists.txt

@@ -300,6 +300,6 @@ if (NOT IOS AND (NOT DEFINED ENABLE_TOOLS OR ENABLE_TOOLS))
 endif ()
 endif ()
 
 
 # Add Data/LuaScripts directory into the LuaJIT module search path
 # Add Data/LuaScripts directory into the LuaJIT module search path
-file (TO_NATIVE_PATH Data/LuaScripts/ LUA_RDIR)     # Relative directory
-file (TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/${DEST_RUNTIME_DIR}/Data/LuaScripts/ LUA_IDIR)     # Installation directory
+set (LUA_RDIR Data/LuaScripts/)     # Relative directory
+set (LUA_IDIR ${CMAKE_INSTALL_PREFIX}/${DEST_RUNTIME_DIR}/Data/LuaScripts/)     # Installation directory
 add_definitions (-DLUA_RDIR="${LUA_RDIR}" -DLUA_IDIR="${LUA_IDIR}")
 add_definitions (-DLUA_RDIR="${LUA_RDIR}" -DLUA_IDIR="${LUA_IDIR}")