mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-04 23:29:23 +00:00
Rename Clay target in CMakeLists
This allows to build both test suites at the same time
This commit is contained in:
parent
fe4aa2066d
commit
48e97ed1f0
@ -141,14 +141,14 @@ IF (BUILD_CLAY)
|
|||||||
INCLUDE_DIRECTORIES(tests-clay)
|
INCLUDE_DIRECTORIES(tests-clay)
|
||||||
FILE(GLOB_RECURSE SRC_TEST tests-clay/*.c)
|
FILE(GLOB_RECURSE SRC_TEST tests-clay/*.c)
|
||||||
|
|
||||||
ADD_EXECUTABLE(libgit2_test ${SRC} ${SRC_TEST} ${SRC_ZLIB})
|
ADD_EXECUTABLE(libgit2_clay ${SRC} ${SRC_TEST} ${SRC_ZLIB})
|
||||||
TARGET_LINK_LIBRARIES(libgit2_test ${CMAKE_THREAD_LIBS_INIT})
|
TARGET_LINK_LIBRARIES(libgit2_clay ${CMAKE_THREAD_LIBS_INIT})
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
TARGET_LINK_LIBRARIES(libgit2_test ws2_32)
|
TARGET_LINK_LIBRARIES(libgit2_clay ws2_32)
|
||||||
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
|
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
|
||||||
TARGET_LINK_LIBRARIES(libgit2_test socket nsl)
|
TARGET_LINK_LIBRARIES(libgit2_clay socket nsl)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
ENABLE_TESTING()
|
ENABLE_TESTING()
|
||||||
ADD_TEST(libgit2_test libgit2_test)
|
ADD_TEST(libgit2_clay libgit2_clay)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
Loading…
Reference in New Issue
Block a user