aboutsummaryrefslogtreecommitdiff
path: root/apps/ocspcheck
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-04 10:37:24 +0300
committerBrent Cook <busterb@gmail.com>2023-07-04 10:37:24 +0300
commit71ce0b8c3e07079a40011d2f3515969e3bdf302e (patch)
tree78aae3da0c893e54f2c65240f4dc3cbc317d739c /apps/ocspcheck
parentb16ad4dbd4143aa27e89744a635ebd7d48697af4 (diff)
downloadportable-71ce0b8c3e07079a40011d2f3515969e3bdf302e.tar.gz
portable-71ce0b8c3e07079a40011d2f3515969e3bdf302e.tar.bz2
portable-71ce0b8c3e07079a40011d2f3515969e3bdf302e.zip
generate opensslconf.h in build dir for cmake
Diffstat (limited to 'apps/ocspcheck')
-rw-r--r--apps/ocspcheck/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt
index 2dddb6e..43eebdf 100644
--- a/apps/ocspcheck/CMakeLists.txt
+++ b/apps/ocspcheck/CMakeLists.txt
@@ -8,9 +8,9 @@ set(
8 8
9check_function_exists(memmem HAVE_MEMMEM) 9check_function_exists(memmem HAVE_MEMMEM)
10if(HAVE_MEMMEM) 10if(HAVE_MEMMEM)
11 add_definitions(-DHAVE_MEMMEM) 11 add_definitions(-DHAVE_MEMMEM)
12else() 12else()
13 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c) 13 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c)
14endif() 14endif()
15 15
16if(NOT "${OPENSSLDIR}" STREQUAL "") 16if(NOT "${OPENSSLDIR}" STREQUAL "")
@@ -20,8 +20,12 @@ else()
20endif() 20endif()
21 21
22add_executable(ocspcheck ${OCSPCHECK_SRC}) 22add_executable(ocspcheck ${OCSPCHECK_SRC})
23target_include_directories(ocspcheck PUBLIC ../../include) 23target_include_directories(ocspcheck
24target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat) 24 PRIVATE
25 ../../include/compat
26 PUBLIC
27 ../../include
28 ${CMAKE_BINARY_DIR}/include)
25target_link_libraries(ocspcheck tls ${OPENSSL_LIBS}) 29target_link_libraries(ocspcheck tls ${OPENSSL_LIBS})
26 30
27if(ENABLE_LIBRESSL_INSTALL) 31if(ENABLE_LIBRESSL_INSTALL)