aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-04-05 17:49:15 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-04-05 17:49:15 -0700
commit497b8fc91cdfa514e86acdb4f2f516b73c1b760f (patch)
treec61eba65c031949974413c69572f3d1c834a652d
parent3baf583934f3077070e9ed4e7684f743ecced577 (diff)
downloadvcpkg-497b8fc91cdfa514e86acdb4f2f516b73c1b760f.tar.gz
vcpkg-497b8fc91cdfa514e86acdb4f2f516b73c1b760f.zip
[shogun] Disable openblas in x86 to enable builds
-rw-r--r--ports/shogun/CONTROL2
-rw-r--r--ports/shogun/portfile.cmake8
2 files changed, 9 insertions, 1 deletions
diff --git a/ports/shogun/CONTROL b/ports/shogun/CONTROL
index 6a05a331e..56b6250d6 100644
--- a/ports/shogun/CONTROL
+++ b/ports/shogun/CONTROL
@@ -1,4 +1,4 @@
Source: shogun
Version: 6.1.3
-Build-Depends: bzip2, eigen3, liblzma, libxml2, openblas, nlopt, rxcpp, snappy, zlib, protobuf, curl, lzo, dirent
+Build-Depends: bzip2, eigen3, liblzma, libxml2, openblas (x64), nlopt, rxcpp, snappy, zlib, protobuf, curl, lzo, dirent
Description: Unified and efficient Machine Learning
diff --git a/ports/shogun/portfile.cmake b/ports/shogun/portfile.cmake
index 24e258539..94ed18797 100644
--- a/ports/shogun/portfile.cmake
+++ b/ports/shogun/portfile.cmake
@@ -22,10 +22,17 @@ file(REMOVE_RECURSE ${SOURCE_PATH}/cmake/external)
file(MAKE_DIRECTORY ${SOURCE_PATH}/cmake/external)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/MSDirent.cmake DESTINATION ${SOURCE_PATH}/cmake/external)
+if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
+ set(CMAKE_DISABLE_FIND_PACKAGE_BLAS 0)
+else()
+ set(CMAKE_DISABLE_FIND_PACKAGE_BLAS 1)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
+ --trace
-DBUILD_META_EXAMPLES=OFF
-DBUILD_EXAMPLES=OFF
-DUSE_SVMLIGHT=OFF
@@ -47,6 +54,7 @@ vcpkg_configure_cmake(
-DCMAKE_DISABLE_FIND_PACKAGE_Ctags=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_CCache=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE
+ -DCMAKE_DISABLE_FIND_PACKAGE_BLAS=${CMAKE_DISABLE_FIND_PACKAGE_BLAS}
-DINSTALL_TARGETS=shogun-static
)