summaryrefslogtreecommitdiff
path: root/cmake/helpers/EflMacros.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-23 18:19:29 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-23 18:19:29 -0200
commit0f8a6d04abbc50075cd6194a5fc5f033b897e0b1 (patch)
tree6bd1a3e1aaf680e02e510bb4dccd9b9fe9389d08 /cmake/helpers/EflMacros.cmake
parentf8487fb77b2e4551b92b5215276a1e52fc073c18 (diff)
cmake: always use test target name, not simple name.
simple name may repeat, like 'suite'.
Diffstat (limited to 'cmake/helpers/EflMacros.cmake')
-rw-r--r--cmake/helpers/EflMacros.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index 807da71d67..cdf25771d8 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -923,11 +923,11 @@ function(EFL_TEST _testname)
923 LIBRARY_OUTPUT_DIRECTORY "${_testbindir}" 923 LIBRARY_OUTPUT_DIRECTORY "${_testbindir}"
924 RUNTIME_OUTPUT_DIRECTORY "${_testbindir}") 924 RUNTIME_OUTPUT_DIRECTORY "${_testbindir}")
925 925
926 add_test(NAME ${_testname} COMMAND ${_testtarget}) 926 add_test(NAME ${_testtarget} COMMAND ${_testtarget})
927 LIST_APPEND_GLOBAL(${EFL_LIB_CURRENT}_TESTS ${_testtarget}) 927 LIST_APPEND_GLOBAL(${EFL_LIB_CURRENT}_TESTS ${_testtarget})
928 928
929 add_test(${_testname}-build "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target ${_testtarget}) 929 add_test(${_testtarget}-build "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target ${_testtarget})
930 set_tests_properties(${_testname} PROPERTIES DEPENDS ${_testname}-build) 930 set_tests_properties(${_testtarget} PROPERTIES DEPENDS ${_testtarget}-build)
931endfunction() 931endfunction()
932 932
933# EFL_MODULE(Name) 933# EFL_MODULE(Name)