File: lapack-GNUtoMS.cmake

package info (click to toggle)
lapack 3.4.1%2Bdfsg-1%2Bdeb70u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 103,172 kB
  • sloc: fortran: 469,422; ansic: 127,041; makefile: 3,817; python: 267; sh: 94
file content (16 lines) | stat: -rw-r--r-- 620 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Skip conversion for non-GNU tools.
if(MINGW OR MSYS OR CYGWIN)
  return()
endif()

# Replace each imported target's import library.
foreach(lib blas lapack tmglib lapacke)
  # Replace for all imported build configurations.
  get_property(configs TARGET ${lib} PROPERTY IMPORTED_CONFIGURATIONS)
  foreach(config ${configs})
    get_property(implib TARGET ${lib} PROPERTY IMPORTED_IMPLIB_${config})
    # Switch to the MS-compatible import library.
    string(REGEX REPLACE "\\.dll\\.a$" ".lib" implib "${implib}")
    set_property(TARGET ${lib} PROPERTY IMPORTED_IMPLIB_${config} ${implib})
  endforeach()
endforeach()