diff options
| author | congzhangzh <congzhangzh@users.noreply.github.com> | 2018-03-08 09:19:20 +0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-03-07 17:19:20 -0800 |
| commit | a6d56f88e5bb29c99b198e4ff2eee6bed24d4423 (patch) | |
| tree | e407079a3fe0e76329ec7e575a12f7e71819d437 /ports/armadillo/disable-wrapper.patch | |
| parent | 1b4bc5e27eeb037c299d3f57e9bed7e3c20c6d76 (diff) | |
| download | vcpkg-a6d56f88e5bb29c99b198e4ff2eee6bed24d4423.tar.gz vcpkg-a6d56f88e5bb29c99b198e4ff2eee6bed24d4423.zip | |
add armadillo (#2954)
* init add armadillo
* [armadillo] Disable wrapper lib. Generate appropriate cmake usage information.
Diffstat (limited to 'ports/armadillo/disable-wrapper.patch')
| -rw-r--r-- | ports/armadillo/disable-wrapper.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ports/armadillo/disable-wrapper.patch b/ports/armadillo/disable-wrapper.patch new file mode 100644 index 000000000..06eb4a776 --- /dev/null +++ b/ports/armadillo/disable-wrapper.patch @@ -0,0 +1,50 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7924a8f..853c2ee 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -27,7 +27,7 @@ include(CheckLibraryExists)
+ ## You will then need to link your programs with -lblas -llapack instead of -larmadillo
+ ## If you're using OpenBLAS, link your programs with -lopenblas -llapack instead of -larmadillo
+
+-set(ARMA_USE_WRAPPER true)
++set(ARMA_USE_WRAPPER false)
+
+
+ # the settings below will be automatically configured by the rest of this script
+@@ -379,7 +379,7 @@ message(STATUS "Generating ${PROJECT_BINARY_DIR}/tmp/include/config.hpp")
+ configure_file(${PROJECT_BINARY_DIR}/tmp/include/armadillo_bits/config.hpp.cmake ${PROJECT_BINARY_DIR}/tmp/include/armadillo_bits/config.hpp)
+
+ message(STATUS "Generating ${PROJECT_SOURCE_DIR}/examples/Makefile")
+-configure_file(${PROJECT_SOURCE_DIR}/examples/Makefile.cmake ${PROJECT_SOURCE_DIR}/examples/Makefile)
++#configure_file(${PROJECT_SOURCE_DIR}/examples/Makefile.cmake ${PROJECT_SOURCE_DIR}/examples/Makefile)
+
+
+ include_directories(${PROJECT_BINARY_DIR}/tmp/include/ ${CMAKE_REQUIRED_INCLUDES})
+@@ -439,11 +439,13 @@ PATTERN "*~" EXCLUDE
+ PATTERN "*orig" EXCLUDE
+ )
+
++if(ARMA_USE_WRAPPER)
+ install(TARGETS armadillo EXPORT ArmadilloLibraryDepends
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+-
++endif()
++
+ # Export the package for use from the build-tree
+ # (this registers the build-tree with a global CMake-registry)
+ export(PACKAGE armadillo)
+@@ -465,10 +467,11 @@ configure_file(${PROJECT_SOURCE_DIR}/cmake_aux/InstallFiles/ArmadilloConfigVersi
+ "${PROJECT_BINARY_DIR}/ArmadilloConfigVersion.cmake" @ONLY)
+
+ # Install the export set for use with the install-tree
++if(ARMA_USE_WRAPPER)
+ install(EXPORT ArmadilloLibraryDepends DESTINATION
+ "${CMAKE_INSTALL_DATADIR}/Armadillo/CMake"
+ COMPONENT dev)
+-
++endif()
+
+ ## GLOBAL INSTALL FILES
+ # Create ArmadilloConfig.cmake file for the use from the install tree
|
