From 3207606f117fe4844c5eb18019a4f0939349ece7 Mon Sep 17 00:00:00 2001 From: kinichiro Date: Mon, 4 Apr 2016 11:28:46 +0900 Subject: fix cmake on HP-UX - CMakeLists.txt * add OS specific compiler flags and library * add checking size of time_t * add checking memmem() - tests/CMakeLists.txt * add if(HAVE_MEMMEM) for explicit_bzero * add checking SMALL_TIME_T for rfc5280time - crypto/CMakeLists.txt * add getentropy_hpux.c - tls/CMakeLists.txt * fix checking strsep --- tests/CMakeLists.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3ca41a2..f98a266 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -134,12 +134,13 @@ add_test(enginetest enginetest) # explicit_bzero # explicit_bzero relies on SA_ONSTACK, which is unavailable on Windows if(NOT CMAKE_HOST_WIN32) -add_executable(explicit_bzero explicit_bzero.c) +if(HAVE_MEMMEM) + add_executable(explicit_bzero explicit_bzero.c) +else() + add_executable(explicit_bzero explicit_bzero.c memmem.c) +endif() target_link_libraries(explicit_bzero ${OPENSSL_LIBS}) add_test(explicit_bzero explicit_bzero) -#if !HAVE_MEMMEM -#explicit_bzero_SOURCES += memmem.c -#endif endif() # exptest @@ -230,7 +231,11 @@ add_test(rc4test rc4test) # rfc5280time add_executable(rfc5280time rfc5280time.c) target_link_libraries(rfc5280time ${OPENSSL_LIBS}) -add_test(rfc5280time rfc5280time) +if(SMALL_TIME_T) + add_test(rfc5280time ${CMAKE_CURRENT_SOURCE_DIR}/rfc5280time_small.test) +else() + add_test(rfc5280time rfc5280time) +endif() # rmdtest add_executable(rmdtest rmdtest.c) -- cgit v1.2.3-55-g6feb