Rename Clay target in CMakeLists This allows to build both test suites at the same time
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd4b5d3..3b32828 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,14 +141,14 @@ IF (BUILD_CLAY)
INCLUDE_DIRECTORIES(tests-clay)
FILE(GLOB_RECURSE SRC_TEST tests-clay/*.c)
- ADD_EXECUTABLE(libgit2_test ${SRC} ${SRC_TEST} ${SRC_ZLIB})
- TARGET_LINK_LIBRARIES(libgit2_test ${CMAKE_THREAD_LIBS_INIT})
+ ADD_EXECUTABLE(libgit2_clay ${SRC} ${SRC_TEST} ${SRC_ZLIB})
+ TARGET_LINK_LIBRARIES(libgit2_clay ${CMAKE_THREAD_LIBS_INIT})
IF (WIN32)
- TARGET_LINK_LIBRARIES(libgit2_test ws2_32)
+ TARGET_LINK_LIBRARIES(libgit2_clay ws2_32)
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
- TARGET_LINK_LIBRARIES(libgit2_test socket nsl)
+ TARGET_LINK_LIBRARIES(libgit2_clay socket nsl)
ENDIF ()
ENABLE_TESTING()
- ADD_TEST(libgit2_test libgit2_test)
+ ADD_TEST(libgit2_clay libgit2_clay)
ENDIF ()