aboutsummaryrefslogtreecommitdiffhomepage
path: root/lapack
diff options
context:
space:
mode:
authorGravatar Alexander Grund <github@grundis.de>2020-12-14 09:57:44 +0000
committerGravatar David Tellenbach <david.tellenbach@me.com>2020-12-14 09:57:44 +0000
commitcf0b5b0344a3bfcf410e95bf22289015a2daf34b (patch)
tree105c02c34e77940e779954e70783769cf32e876d /lapack
parent751f18f2c00b8c38cef288d61d43f6ea39b9cad3 (diff)
Remove code checking for CMake < 3.5
As the CMake version is at least 3.5 the code checking for earlier versions can be removed.
Diffstat (limited to 'lapack')
-rw-r--r--lapack/CMakeLists.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/lapack/CMakeLists.txt b/lapack/CMakeLists.txt
index 0c50d5cd8..a85115b03 100644
--- a/lapack/CMakeLists.txt
+++ b/lapack/CMakeLists.txt
@@ -137,16 +137,15 @@ if(EXISTS ${eigen_full_path_to_testing_lapack})
add_subdirectory(testing/MATGEN)
add_subdirectory(testing/LIN)
add_subdirectory(testing/EIG)
- cmake_policy(SET CMP0026 OLD)
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=$<TARGET_FILE:${target}>
-DINPUT=${TEST_INPUT}
-DOUTPUT=${TEST_OUTPUT}
-DINTDIR=${CMAKE_CFG_INTDIR}