You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 regels
3.9 KiB

  1. diff -rupN clapack-3.2.1-CMAKE/BLAS/SRC/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/BLAS/SRC/CMakeLists.txt
  2. --- clapack-3.2.1-CMAKE/BLAS/SRC/CMakeLists.txt 2009-08-14 22:16:25.000000000 +0200
  3. +++ clapack-3.2.1-CMAKE.cotire/BLAS/SRC/CMakeLists.txt 2012-03-24 19:59:26.000000000 +0100
  4. @@ -141,3 +141,13 @@ if(UNIX)
  5. target_link_libraries(blas m)
  6. endif()
  7. target_link_libraries(blas f2c)
  8. +
  9. +if (COMMAND cotire)
  10. + cotire(blas)
  11. + if (TARGET blas_unity)
  12. + if(UNIX)
  13. + target_link_libraries(blas_unity m)
  14. + endif()
  15. + target_link_libraries(blas_unity f2c_unity)
  16. + endif()
  17. +endif()
  18. diff -rupN clapack-3.2.1-CMAKE/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/CMakeLists.txt
  19. --- clapack-3.2.1-CMAKE/CMakeLists.txt 2009-08-10 20:46:33.000000000 +0200
  20. +++ clapack-3.2.1-CMAKE.cotire/CMakeLists.txt 2012-03-24 19:56:58.000000000 +0100
  21. @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.6)
  22. project(CLAPACK C)
  23. enable_testing()
  24. include(CTest)
  25. +include("${CMAKE_SOURCE_DIR}/cotire.cmake")
  26. if(WIN32 AND NOT CYGWIN)
  27. set(SECOND_SRC ${CLAPACK_SOURCE_DIR}/INSTALL/winsecond.c)
  28. diff -rupN clapack-3.2.1-CMAKE/F2CLIBS/libf2c/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/F2CLIBS/libf2c/CMakeLists.txt
  29. --- clapack-3.2.1-CMAKE/F2CLIBS/libf2c/CMakeLists.txt 2009-08-10 20:06:06.000000000 +0200
  30. +++ clapack-3.2.1-CMAKE.cotire/F2CLIBS/libf2c/CMakeLists.txt 2012-03-24 19:58:41.000000000 +0100
  31. @@ -60,3 +60,6 @@ include_directories(${CLAPACK_SOURCE_DIR
  32. include_directories(${CLAPACK_BINARY_DIR}/F2CLIBS/libf2c)
  33. add_library(f2c ${OFILES} ${CMAKE_CURRENT_BINARY_DIR}/arith.h)
  34. set_property(TARGET f2c PROPERTY PREFIX lib)
  35. +if (COMMAND cotire)
  36. + cotire(f2c)
  37. +endif()
  38. diff -rupN clapack-3.2.1-CMAKE/SRC/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/SRC/CMakeLists.txt
  39. --- clapack-3.2.1-CMAKE/SRC/CMakeLists.txt 2009-08-10 19:47:54.000000000 +0200
  40. +++ clapack-3.2.1-CMAKE.cotire/SRC/CMakeLists.txt 2012-03-24 19:59:20.000000000 +0100
  41. @@ -378,3 +378,9 @@ endif()
  42. add_library(lapack ${ALLOBJ} ${ALLXOBJ})
  43. target_link_libraries(lapack blas)
  44. +if (COMMAND cotire)
  45. + cotire(lapack)
  46. + if (TARGET lapack_unity)
  47. + target_link_libraries(lapack_unity blas_unity)
  48. + endif()
  49. +endif()
  50. diff -rupN clapack-3.2.1-CMAKE/TESTING/EIG/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/TESTING/EIG/CMakeLists.txt
  51. --- clapack-3.2.1-CMAKE/TESTING/EIG/CMakeLists.txt 2009-08-10 19:47:54.000000000 +0200
  52. +++ clapack-3.2.1-CMAKE.cotire/TESTING/EIG/CMakeLists.txt 2012-03-24 20:07:55.000000000 +0100
  53. @@ -120,6 +120,12 @@ set(ZEIGTST zchkee.c
  54. macro(add_eig_executable name )
  55. add_executable(${name} ${ARGN})
  56. target_link_libraries(${name} tmglib lapack )
  57. + if (COMMAND cotire)
  58. + cotire(${name})
  59. + if (TARGET ${name}_unity)
  60. + target_link_libraries(${name}_unity tmglib lapack )
  61. + endif()
  62. + endif()
  63. endmacro(add_eig_executable)
  64. add_eig_executable(xeigtsts ${SEIGTST} ${SCIGTST} ${AEIGTST}
  65. diff -rupN clapack-3.2.1-CMAKE/TESTING/LIN/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/TESTING/LIN/CMakeLists.txt
  66. --- clapack-3.2.1-CMAKE/TESTING/LIN/CMakeLists.txt 2009-08-10 20:06:06.000000000 +0200
  67. +++ clapack-3.2.1-CMAKE.cotire/TESTING/LIN/CMakeLists.txt 2012-03-24 20:08:13.000000000 +0100
  68. @@ -190,6 +190,12 @@ set(ZLINTSTRFP zchkrfp.c zdrvrfp.c zdrv
  69. macro(add_lin_executable name )
  70. add_executable(${name} ${ARGN})
  71. target_link_libraries(${name} tmglib lapack)
  72. + if (COMMAND cotire)
  73. + cotire(${name})
  74. + if (TARGET ${name}_unity)
  75. + target_link_libraries(${name}_unity tmglib lapack )
  76. + endif()
  77. + endif()
  78. endmacro(add_lin_executable)
  79. add_lin_executable(xlintsts ${ALINTST} ${SCLNTST} ${SLINTST}
  80. diff -rupN clapack-3.2.1-CMAKE/TESTING/MATGEN/CMakeLists.txt clapack-3.2.1-CMAKE.cotire/TESTING/MATGEN/CMakeLists.txt
  81. --- clapack-3.2.1-CMAKE/TESTING/MATGEN/CMakeLists.txt 2009-08-10 19:47:54.000000000 +0200
  82. +++ clapack-3.2.1-CMAKE.cotire/TESTING/MATGEN/CMakeLists.txt 2012-03-24 20:05:19.000000000 +0100
  83. @@ -67,3 +67,6 @@ if(BUILD_COMPLEX16)
  84. endif()
  85. add_library(tmglib ${ALLOBJ} )
  86. +if (COMMAND cotire)
  87. + cotire(tmglib)
  88. +endif()