Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-01-10 14:45:53 +0300
committerHannah von Reth <vonreth@kde.org>2020-01-20 14:19:57 +0300
commit69f74a63980a824bc3f82eaf11e65c644f738fcf (patch)
tree5d3c8d0a33a5d3cddeee2057020df08c83c836eb /cmake
parent4a1e8202a0ee6b8ed9780464f6a2c059a00a7a85 (diff)
[CMAKE] Cleanup cmocka tests
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddCMockaTest.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/AddCMockaTest.cmake b/cmake/modules/AddCMockaTest.cmake
index 1c0bc04f6..df5af0a79 100644
--- a/cmake/modules/AddCMockaTest.cmake
+++ b/cmake/modules/AddCMockaTest.cmake
@@ -18,7 +18,8 @@ endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)
function (ADD_CMOCKA_TEST _testName _testSource)
add_executable(${_testName} ${_testSource})
+ set_target_properties(${_testName} PROPERTIES C_STANDARD 99)
ecm_mark_nongui_executable(${_testName})
target_link_libraries(${_testName} ${ARGN})
- add_test(${_testName} ${CMAKE_CURRENT_BINARY_DIR}/${_testName})
+ add_test(NAME ${_testName} COMMAND $<TARGET_FILE:${_testName}>)
endfunction (ADD_CMOCKA_TEST)