aboutsummaryrefslogtreecommitdiff
path: root/ports/mlpack/cmakelists.patch
diff options
context:
space:
mode:
authorMiguel <mcanteras@gmail.com>2019-06-17 19:52:52 +0200
committerPhil Christensen <philc@microsoft.com>2019-06-17 10:52:52 -0700
commitf86fc80db48cb60da62e73894cbb832b166cdc34 (patch)
tree48717f6e0af9b020a87cf36a6703cff3ac227e2b /ports/mlpack/cmakelists.patch
parentfd18a7d3a9ec08a6edb9965ee14d2d03d965468d (diff)
downloadvcpkg-f86fc80db48cb60da62e73894cbb832b166cdc34.tar.gz
vcpkg-f86fc80db48cb60da62e73894cbb832b166cdc34.zip
[mlpack] Updated to version 3.1.1 (#6907)
* [mlpack] Updated to version 3.1.0 * [mlpack] Updated to version 3.1.1
Diffstat (limited to 'ports/mlpack/cmakelists.patch')
-rw-r--r--ports/mlpack/cmakelists.patch106
1 files changed, 52 insertions, 54 deletions
diff --git a/ports/mlpack/cmakelists.patch b/ports/mlpack/cmakelists.patch
index a4ef8f119..05810f57f 100644
--- a/ports/mlpack/cmakelists.patch
+++ b/ports/mlpack/cmakelists.patch
@@ -1,54 +1,52 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 26dfd6e..5e287d8 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -283,25 +283,8 @@ endif()
- # and find LAPACK and BLAS ourselves, using a slightly modified variant of the
- # script Armadillo uses to find these.
- if (WIN32)
-- find_library(LAPACK_LIBRARY
-- NAMES lapack liblapack lapack_win32_MT lapack_win32
-- PATHS "C:/Program Files/Armadillo"
-- PATH_SUFFIXES "examples/lib_win32/")
--
-- if (NOT LAPACK_LIBRARY)
-- message(FATAL_ERROR "Cannot find LAPACK library (.lib)!")
-- endif ()
--
-- find_library(BLAS_LIBRARY
-- NAMES blas libblas blas_win32_MT blas_win32
-- PATHS "C:/Program Files/Armadillo"
-- PATH_SUFFIXES "examples/lib_win32/")
--
-- if (NOT BLAS_LIBRARY)
-- message(FATAL_ERROR "Cannot find BLAS library (.lib)!")
-- endif ()
--
-- # Piggyback LAPACK and BLAS linking into Armadillo link.
-+ find_package(LAPACK)
-+ find_package(BLAS)
- set(ARMADILLO_LIBRARIES
- ${ARMADILLO_LIBRARIES} ${BLAS_LIBRARY} ${LAPACK_LIBRARY})
- endif ()
-@@ -392,19 +375,11 @@ find_package(Boost 1.49
- REQUIRED
- )
-
--link_directories(${Boost_LIBRARY_DIRS})
--
--# In Visual Studio, automatic linking is performed, so we don't need to worry
--# about it. Clear the list of libraries to link against and let Visual Studio
--# handle it.
--if (MSVC)
-- link_directories(${Boost_LIBRARY_DIRS})
-- set(Boost_LIBRARIES "")
--endif ()
-+link_directories(${Boost_LIBRARIES})
-
- set(MLPACK_INCLUDE_DIRS ${MLPACK_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
- set(MLPACK_LIBRARIES ${MLPACK_LIBRARIES} ${Boost_LIBRARIES})
--set(MLPACK_LIBRARY_DIRS ${MLPACK_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
-+set(MLPACK_LIBRARY_DIRS ${MLPACK_LIBRARY_DIRS} ${Boost_LIBRARIES})
-
- # For Boost testing framework (will have no effect on non-testing executables).
- # This specifies to Boost that we are dynamically linking to the Boost test
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -283,25 +283,8 @@
+ # and find LAPACK and BLAS ourselves, using a slightly modified variant of the
+ # script Armadillo uses to find these.
+ if (WIN32)
+- find_library(LAPACK_LIBRARY
+- NAMES lapack liblapack lapack_win32_MT lapack_win32
+- PATHS "C:/Program Files/Armadillo"
+- PATH_SUFFIXES "examples/lib_win32/")
+-
+- if (NOT LAPACK_LIBRARY)
+- message(FATAL_ERROR "Cannot find LAPACK library (.lib)!")
+- endif ()
+-
+- find_library(BLAS_LIBRARY
+- NAMES blas libblas blas_win32_MT blas_win32
+- PATHS "C:/Program Files/Armadillo"
+- PATH_SUFFIXES "examples/lib_win32/")
+-
+- if (NOT BLAS_LIBRARY)
+- message(FATAL_ERROR "Cannot find BLAS library (.lib)!")
+- endif ()
+-
+- # Piggyback LAPACK and BLAS linking into Armadillo link.
++ find_package(LAPACK)
++ find_package(BLAS)
+ set(ARMADILLO_LIBRARIES
+ ${ARMADILLO_LIBRARIES} ${BLAS_LIBRARY} ${LAPACK_LIBRARY})
+ endif ()
+@@ -395,19 +378,11 @@
+ REQUIRED
+ )
+
+-link_directories(${Boost_LIBRARY_DIRS})
+-
+-# In Visual Studio, automatic linking is performed, so we don't need to worry
+-# about it. Clear the list of libraries to link against and let Visual Studio
+-# handle it.
+-if (MSVC)
+- link_directories(${Boost_LIBRARY_DIRS})
+- set(Boost_LIBRARIES "")
+-endif ()
++link_directories(${Boost_LIBRARIES})
+
+ set(MLPACK_INCLUDE_DIRS ${MLPACK_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
+ set(MLPACK_LIBRARIES ${MLPACK_LIBRARIES} ${Boost_LIBRARIES})
+-set(MLPACK_LIBRARY_DIRS ${MLPACK_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
++set(MLPACK_LIBRARY_DIRS ${MLPACK_LIBRARY_DIRS} ${Boost_LIBRARIES})
+
+ # For Boost testing framework (will have no effect on non-testing executables).
+ # This specifies to Boost that we are dynamically linking to the Boost test