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:
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)