diff options
author | julie <julielangou@users.noreply.github.com> | 2014-06-14 17:04:05 +0000 |
---|---|---|
committer | julie <julielangou@users.noreply.github.com> | 2014-06-14 17:04:05 +0000 |
commit | 54a506304c4b81e8f2ce03a11356e25b74688b4c (patch) | |
tree | 11344f8dd9c419e2f69ab9811a3a265e039435e0 /BLAS | |
parent | b42e9d5b6fc5484913ab098b5c0bc24b89e51d24 (diff) | |
download | lapack-54a506304c4b81e8f2ce03a11356e25b74688b4c.tar.gz lapack-54a506304c4b81e8f2ce03a11356e25b74688b4c.tar.bz2 lapack-54a506304c4b81e8f2ce03a11356e25b74688b4c.zip |
Applied patch provided from vitaut on LAPACK forum on June 13th.
The patch fixes the warnings (Policy CMP0026) by replacing the deprecated LOCATION target
property with the generator expression $<TARGET_FILE>
See http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=13&t=4556&p=10939#p10939
Diffstat (limited to 'BLAS')
-rw-r--r-- | BLAS/TESTING/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/BLAS/TESTING/CMakeLists.txt b/BLAS/TESTING/CMakeLists.txt index 6f553b44..b6e5a5c2 100644 --- a/BLAS/TESTING/CMakeLists.txt +++ b/BLAS/TESTING/CMakeLists.txt @@ -30,17 +30,16 @@ macro(add_blas_test name src) get_filename_component(baseNAME ${src} NAME_WE) set(TEST_INPUT "${LAPACK_SOURCE_DIR}/BLAS/${baseNAME}.in") add_executable(${name} ${src}) - get_target_property(TEST_LOC ${name} LOCATION) target_link_libraries(${name} blas) if(EXISTS "${TEST_INPUT}") - add_test(BLAS-${name} "${CMAKE_COMMAND}" - -DTEST=${TEST_LOC} + add_test(NAME BLAS-${name} COMMAND "${CMAKE_COMMAND}" + -DTEST=$<TARGET_FILE:${name}> -DINPUT=${TEST_INPUT} -DINTDIR=${CMAKE_CFG_INTDIR} -P "${LAPACK_SOURCE_DIR}/TESTING/runtest.cmake") else() - add_test(BLAS-${name} "${CMAKE_COMMAND}" - -DTEST=${TEST_LOC} + add_test(NAME BLAS-${name} COMMAND "${CMAKE_COMMAND}" + -DTEST=$<TARGET_FILE:${name}> -DINTDIR=${CMAKE_CFG_INTDIR} -P "${LAPACK_SOURCE_DIR}/TESTING/runtest.cmake") endif() |