From 650487dbe908c2d42552d682be6e00ff937029ed Mon Sep 17 00:00:00 2001 From: kinichiro Date: Tue, 27 Mar 2018 21:40:52 +0900 Subject: Build and run regression tests against shared libraries with CMake --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c6bd67..6b20778 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,11 +274,11 @@ if(HAVE_CLOCK_GETTIME) endif() if(CMAKE_SYSTEM_NAME MATCHES "Linux") + set(OPENSSL_LIBS ${OPENSSL_LIBS} pthread) check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME) if (HAVE_CLOCK_GETTIME) set(OPENSSL_LIBS ${OPENSSL_LIBS} rt) endif() - set(OPENSSL_LIBS ${OPENSSL_LIBS} pthread) endif() if(CMAKE_SYSTEM_NAME MATCHES "HP-UX") set(OPENSSL_LIBS ${OPENSSL_LIBS} pthread) @@ -307,7 +307,7 @@ if(NOT MSVC) add_subdirectory(man) endif() # Tests require the openssl executable and are unavailable when building shared libraries -if(LIBRESSL_APPS AND LIBRESSL_TESTS AND NOT BUILD_SHARED_LIBS) +if(LIBRESSL_APPS AND LIBRESSL_TESTS) add_subdirectory(tests) endif() -- cgit v1.2.3-55-g6feb