diff options
Diffstat (limited to 'ports/lapack-reference/portfile.cmake')
| -rw-r--r-- | ports/lapack-reference/portfile.cmake | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ports/lapack-reference/portfile.cmake b/ports/lapack-reference/portfile.cmake index 1e3f8d6b6..6a3ad6982 100644 --- a/ports/lapack-reference/portfile.cmake +++ b/ports/lapack-reference/portfile.cmake @@ -24,6 +24,9 @@ endif() set(CBLAS OFF)
if("cblas" IN_LIST FEATURES)
set(CBLAS ON)
+ if("noblas" IN_LIST FEATURES)
+ message(FATAL_ERROR "Cannot built feature 'cblas' together with feature 'noblas'. cblas requires blas!")
+ endif()
endif()
set(USE_OPTIMIZED_BLAS OFF)
@@ -59,7 +62,7 @@ vcpkg_configure_cmake( OPTIONS
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
"-DCBLAS=${CBLAS}"
- "${FORTRAN_CMAKE}"
+ ${FORTRAN_CMAKE}
)
vcpkg_install_cmake()
@@ -91,6 +94,20 @@ if(NOT USE_OPTIMIZED_BLAS) file(WRITE "${pcfile}" "${_contents}")
endif()
endif()
+if("cblas" IN_LIST FEATURES)
+ set(pcfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/cblas.pc")
+ if(EXISTS "${pcfile}")
+ file(READ "${pcfile}" _contents)
+ set(_contents "prefix=${CURRENT_INSTALLED_DIR}\n${_contents}")
+ file(WRITE "${pcfile}" "${_contents}")
+ endif()
+ set(pcfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cblas.pc")
+ if(EXISTS "${pcfile}")
+ file(READ "${pcfile}" _contents)
+ set(_contents "prefix=${CURRENT_INSTALLED_DIR}/debug\n${_contents}")
+ file(WRITE "${pcfile}" "${_contents}")
+ endif()
+endif()
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
|
