From: julie Date: Sat, 14 Jun 2014 17:04:05 +0000 (+0000) Subject: Applied patch provided from vitaut on LAPACK forum on June 13th. X-Git-Tag: submit/tizen/20180313.231549~420 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54a506304c4b81e8f2ce03a11356e25b74688b4c;p=platform%2Fupstream%2Flapack.git 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 --- 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=$ -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=$ -DINTDIR=${CMAKE_CFG_INTDIR} -P "${LAPACK_SOURCE_DIR}/TESTING/runtest.cmake") endif() 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}