From 54a506304c4b81e8f2ce03a11356e25b74688b4c Mon Sep 17 00:00:00 2001 From: julie Date: Sat, 14 Jun 2014 17:04:05 +0000 Subject: 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 $ See http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=13&t=4556&p=10939#p10939 --- TESTING/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'TESTING/CMakeLists.txt') diff --git a/TESTING/CMakeLists.txt b/TESTING/CMakeLists.txt index 9025a98d..203ad517 100644 --- a/TESTING/CMakeLists.txt +++ b/TESTING/CMakeLists.txt @@ -10,12 +10,11 @@ add_subdirectory(EIG) macro(add_lapack_test output input target) set(TEST_INPUT "${LAPACK_SOURCE_DIR}/TESTING/${input}") set(TEST_OUTPUT "${LAPACK_BINARY_DIR}/TESTING/${output}") - get_target_property(TEST_LOC ${target} LOCATION) string(REPLACE "." "_" input_name ${input}) set(testName "${target}_${input_name}") if(EXISTS "${TEST_INPUT}") - add_test(LAPACK-${testName} "${CMAKE_COMMAND}" - -DTEST=${TEST_LOC} + add_test(NAME LAPACK-${testName} COMMAND "${CMAKE_COMMAND}" + -DTEST=$ -DINPUT=${TEST_INPUT} -DOUTPUT=${TEST_OUTPUT} -DINTDIR=${CMAKE_CFG_INTDIR} -- cgit v1.2.3