Skip to content

Commit 8b147e8

Browse files
committed
update deprecated syntax
update deprecated syntax doc
1 parent e249300 commit 8b147e8

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ CBLAS, a C interface to the BLAS, and (5) LAPACKE, a C interface to LAPACK.
6969
the `INSTALL` directory.
7070
- LAPACK includes also the CMake build. You will need to have CMake installed
7171
on your machine (CMake is available at http://www.cmake.org/). CMake will
72-
allow an easy installation on a Windows Machine.
72+
allow an easy installation on a Windows Machine.
73+
An example CMake build is:
74+
```sh
75+
mkdir build
76+
cd build
77+
cmake -DCMAKE_INSTALL_LIBDIR=$HOME/.local/lapack ..
78+
cmake --build -j . --target install
79+
```
80+
That installs the LAPACK library under $HOME/.local/lapack/
7381
- Specific information to run LAPACK under Windows is available at
7482
http://icl.cs.utk.edu/lapack-for-windows/lapack/.
7583

TESTING/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ endif()
161161
# Only run this test if python 2.7 or greater is found
162162
if(PYTHONINTERP_FOUND)
163163
message(STATUS "Running Summary")
164-
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${LAPACK_SOURCE_DIR}/lapack_testing.py ${LAPACK_BINARY_DIR})
164+
file(COPY ${LAPACK_SOURCE_DIR}/lapack_testing.py DESTINATION ${LAPACK_BINARY_DIR})
165165
add_test(
166166
NAME LAPACK_Test_Summary
167167
WORKING_DIRECTORY ${LAPACK_BINARY_DIR}

lapack_build.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ find_program(HOSTNAME NAMES hostname)
6969
find_program(UNAME NAMES uname)
7070

7171
# Get the build name and hostname
72-
exec_program(${HOSTNAME} ARGS OUTPUT_VARIABLE hostname)
72+
execute_process(${HOSTNAME}
73+
OUTPUT_VARIABLE hostname)
7374
string(REGEX REPLACE "[/\\\\+<> #]" "-" hostname "${hostname}")
7475

7576
message("HOSTNAME: ${hostname}")
@@ -83,7 +84,8 @@ find_package(Git REQUIRED)
8384
set(CTEST_GIT_COMMAND ${GIT_EXECUTABLE})
8485
set(CTEST_UPDATE_COMMAND ${GIT_EXECUTABLE})
8586
macro(getuname name flag)
86-
exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
87+
execute_process(COMMAND "${UNAME}" "${flag}"
88+
OUTPUT_VARIABLE "${name}")
8789
string(REGEX REPLACE "[/\\\\+<> #]" "-" "${name}" "${${name}}")
8890
string(REGEX REPLACE "^(......|.....|....|...|..|.).*" "\\1" "${name}" "${${name}}")
8991
endmacro()

0 commit comments

Comments
 (0)