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

lapack-GNUtoMS.cmake 608 B

12345678910111213141516
  1. # Skip conversion for non-GNU tools.
  2. if(MINGW OR MSYS OR CYGWIN)
  3. return()
  4. endif()
  5. # Replace each imported target's import library.
  6. foreach(lib ${ALL_TARGETS})
  7. # Replace for all imported build configurations.
  8. get_property(configs TARGET ${lib} PROPERTY IMPORTED_CONFIGURATIONS)
  9. foreach(config ${configs})
  10. get_property(implib TARGET ${lib} PROPERTY IMPORTED_IMPLIB_${config})
  11. # Switch to the MS-compatible import library.
  12. string(REGEX REPLACE "\\.dll\\.a$" ".lib" implib "${implib}")
  13. set_property(TARGET ${lib} PROPERTY IMPORTED_IMPLIB_${config} ${implib})
  14. endforeach()
  15. endforeach()