opencascade-cmake.patch 1.3 KB

123456789101112131415161718192021222324252627
  1. --- a/adm/templates/OpenCASCADEConfig.cmake.in
  2. +++ b/adm/templates/OpenCASCADEConfig.cmake.in
  3. @@ -27,7 +27,7 @@ get_filename_component (OpenCASCADE_INST
  4. if (OpenCASCADE_INSTALL_PREFIX MATCHES "/cmake$")
  5. get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
  6. endif()
  7. -if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib$")
  8. +if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib$" OR OpenCASCADE_INSTALL_PREFIX MATCHES "/lib64$")
  9. get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
  10. endif()
  11. if (OpenCASCADE_INSTALL_PREFIX MATCHES "/libs/${CMAKE_ANDROID_ARCH_ABI}$")
  12. --- a/adm/cmake/occt_toolkit.cmake
  13. +++ b/adm/cmake/occt_toolkit.cmake
  14. @@ -244,9 +244,9 @@ else()
  15. install (TARGETS ${PROJECT_NAME}
  16. EXPORT OpenCASCADE${CURRENT_MODULE}Targets
  17. - RUNTIME DESTINATION "${INSTALL_DIR_BIN}\${OCCT_INSTALL_BIN_LETTER}"
  18. - ARCHIVE DESTINATION "${INSTALL_DIR_LIB}\${OCCT_INSTALL_BIN_LETTER}"
  19. - LIBRARY DESTINATION "${INSTALL_DIR_LIB}\${OCCT_INSTALL_BIN_LETTER}")
  20. + RUNTIME DESTINATION "${INSTALL_DIR_BIN}"
  21. + ARCHIVE DESTINATION "${INSTALL_DIR_LIB}"
  22. + LIBRARY DESTINATION "${INSTALL_DIR_LIB}")
  23. if (NOT WIN32)
  24. if (BUILD_SHARED_LIBS AND NOT "${BUILD_SHARED_LIBRARY_NAME_POSTFIX}" STREQUAL "")