opencc-1.0.4-cmake-libdir.patch 458 B

12345678910111213141516
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index e3eb3a1..5370866 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -83,6 +83,10 @@ if (DEFINED SYSCONF_INSTALL_DIR)
  6. set (DIR_ETC ${SYSCONF_INSTALL_DIR})
  7. endif (DEFINED SYSCONF_INSTALL_DIR)
  8. +if (DEFINED CMAKE_INSTALL_LIBDIR)
  9. + set (DIR_LIBRARY ${CMAKE_INSTALL_LIBDIR})
  10. +endif (DEFINED CMAKE_INSTALL_LIBDIR)
  11. +
  12. set (DIR_SHARE_OPENCC ${DIR_SHARE}opencc/)
  13. set (DIR_SHARE_LOCALE ${DIR_SHARE}locale/)