mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Require check if testing is enabled.
This commit is contained in:
@@ -37,7 +37,6 @@ include(MacroCopyFile)
|
|||||||
|
|
||||||
# search for libraries
|
# search for libraries
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
find_package(Check)
|
|
||||||
|
|
||||||
if (WITH_GCRYPT)
|
if (WITH_GCRYPT)
|
||||||
find_package(GCrypt REQUIRED)
|
find_package(GCrypt REQUIRED)
|
||||||
@@ -78,10 +77,11 @@ if (UNIX AND NOT WIN32)
|
|||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif (UNIX AND NOT WIN32)
|
endif (UNIX AND NOT WIN32)
|
||||||
|
|
||||||
if (CHECK_FOUND AND WITH_TESTING)
|
if (WITH_TESTING)
|
||||||
|
find_package(Check REQUIRED)
|
||||||
include(AddCheckTest)
|
include(AddCheckTest)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif (CHECK_FOUND AND WITH_TESTING)
|
endif (WITH_TESTING)
|
||||||
|
|
||||||
message(STATUS "********************************************")
|
message(STATUS "********************************************")
|
||||||
message(STATUS "********** ${PROJECT_NAME} build options : **********")
|
message(STATUS "********** ${PROJECT_NAME} build options : **********")
|
||||||
|
|||||||
Reference in New Issue
Block a user