Explorar o código

fix for unit testing

Johannes Ruehle %!s(int64=11) %!d(string=hai) anos
pai
achega
8ca1e666f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmake/NiceModules.cmake

+ 1 - 1
cmake/NiceModules.cmake

@@ -75,7 +75,7 @@ macro(nice_add_unittests)
 
       INSTALL(TARGETS ${__testname} DESTINATION "tests/${the_library}")
       SET_PROPERTY(TARGET ${__testname} PROPERTY FOLDER "unittests/${the_library}")
-      ADD_TEST(${__testname} ${__testname} WORKING_DIRECTORY ${__testname_dir})
+      ADD_TEST(NAME ${__testname} WORKING_DIRECTORY ${__testname_dir} COMMAND ${__testname})
     endforeach()
 
 #     INCLUDE_DIRECTORIES(${CPPUNIT_INCLUDE_DIR})