diff options
| author | Brent Cook <busterb@gmail.com> | 2023-07-04 10:37:24 +0300 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-07-04 10:37:24 +0300 |
| commit | 71ce0b8c3e07079a40011d2f3515969e3bdf302e (patch) | |
| tree | 78aae3da0c893e54f2c65240f4dc3cbc317d739c /apps/ocspcheck | |
| parent | b16ad4dbd4143aa27e89744a635ebd7d48697af4 (diff) | |
| download | portable-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.txt | 12 |
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 | ||
| 9 | check_function_exists(memmem HAVE_MEMMEM) | 9 | check_function_exists(memmem HAVE_MEMMEM) |
| 10 | if(HAVE_MEMMEM) | 10 | if(HAVE_MEMMEM) |
| 11 | add_definitions(-DHAVE_MEMMEM) | 11 | add_definitions(-DHAVE_MEMMEM) |
| 12 | else() | 12 | else() |
| 13 | set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c) | 13 | set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c) |
| 14 | endif() | 14 | endif() |
| 15 | 15 | ||
| 16 | if(NOT "${OPENSSLDIR}" STREQUAL "") | 16 | if(NOT "${OPENSSLDIR}" STREQUAL "") |
| @@ -20,8 +20,12 @@ else() | |||
| 20 | endif() | 20 | endif() |
| 21 | 21 | ||
| 22 | add_executable(ocspcheck ${OCSPCHECK_SRC}) | 22 | add_executable(ocspcheck ${OCSPCHECK_SRC}) |
| 23 | target_include_directories(ocspcheck PUBLIC ../../include) | 23 | target_include_directories(ocspcheck |
| 24 | target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat) | 24 | PRIVATE |
| 25 | ../../include/compat | ||
| 26 | PUBLIC | ||
| 27 | ../../include | ||
| 28 | ${CMAKE_BINARY_DIR}/include) | ||
| 25 | target_link_libraries(ocspcheck tls ${OPENSSL_LIBS}) | 29 | target_link_libraries(ocspcheck tls ${OPENSSL_LIBS}) |
| 26 | 30 | ||
| 27 | if(ENABLE_LIBRESSL_INSTALL) | 31 | if(ENABLE_LIBRESSL_INSTALL) |
