| --- libSBML-5.18.0-Source/CMakeLists.txt.orig 2019-11-11 22:11:09.453656400 +0300 |
| +++ libSBML-5.18.0-Source/CMakeLists.txt 2019-11-11 22:15:50.987759200 +0300 |
| @@ -950,6 +950,7 @@ |
| set(FILE_SEP ";") |
| if(MINGW) |
| set(LIBSBML_LIBRARY sbml) |
| + set(MISC_PREFIX "${CMAKE_INSTALL_DATADIR}/libsbml/") |
| else() |
| set(LIBSBML_LIBRARY libsbml) |
| endif() |
| @@ -1317,8 +1318,8 @@ |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "Version: ${PACKAGE_VERSION}\n") |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "\n") |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "prefix=${CMAKE_INSTALL_PREFIX}\n") |
| -file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "libdir=${CMAKE_INSTALL_FULL_LIBDIR}\n") |
| -file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}\n") |
| +file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "libdir=\${prefix}/${CMAKE_INSTALL_LIBDIR}\n") |
| +file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "includedir=\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}\n") |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "\n") |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "Libs: -L\${libdir} -lsbml\n") |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "Libs.private: ${PRIVATE_LIBS}\n") |
| @@ -1331,7 +1332,7 @@ |
| file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" "Requires.private: libxml-2.0 >= 2.6.22\n") |
| endif() |
| |
| -if (UNIX) |
| +if (UNIX OR MINGW) |
| install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libsbml.pc" |
| DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
| endif() |
| --- libSBML-5.18.0-Source/src/bindings/python/CMakeLists.txt.orig 2019-11-11 22:18:45.782756900 +0300 |
| +++ libSBML-5.18.0-Source/src/bindings/python/CMakeLists.txt 2019-11-11 22:18:53.304187100 +0300 |
| @@ -324,7 +324,7 @@ |
| # Determine the python installation directory |
| # |
| set(PYTHON_PACKAGE_INSTALL_DIR) |
| -if (UNIX OR CYGWIN) |
| +if (UNIX OR CYGWIN OR MINGW) |
| execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info[:2]))" |
| OUTPUT_VARIABLE PYTHON_VERSION) |
| set(PYTHON_PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/site-packages) |