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/openssl | |
| 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/openssl')
| -rw-r--r-- | apps/openssl/CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/openssl/CMakeLists.txt b/apps/openssl/CMakeLists.txt index 437c0db..efea217 100644 --- a/apps/openssl/CMakeLists.txt +++ b/apps/openssl/CMakeLists.txt | |||
| @@ -61,15 +61,20 @@ if(WIN32) | |||
| 61 | endif() | 61 | endif() |
| 62 | 62 | ||
| 63 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") | 63 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") |
| 64 | check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) | 64 | check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) |
| 65 | if(NOT HAVE_CLOCK_GETTIME) | 65 | if(NOT HAVE_CLOCK_GETTIME) |
| 66 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c) | 66 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c) |
| 67 | endif() | 67 | endif() |
| 68 | endif() | 68 | endif() |
| 69 | 69 | ||
| 70 | add_executable(openssl ${OPENSSL_SRC}) | 70 | add_executable(openssl ${OPENSSL_SRC}) |
| 71 | target_include_directories(openssl PUBLIC ../../include) | 71 | target_include_directories(openssl |
| 72 | target_include_directories(openssl PRIVATE . ../../include/compat) | 72 | PRIVATE |
| 73 | . | ||
| 74 | ../../include/compat | ||
| 75 | PUBLIC | ||
| 76 | ../../include | ||
| 77 | ${CMAKE_BINARY_DIR}/include) | ||
| 73 | target_link_libraries(openssl ${OPENSSL_LIBS}) | 78 | target_link_libraries(openssl ${OPENSSL_LIBS}) |
| 74 | 79 | ||
| 75 | if(ENABLE_LIBRESSL_INSTALL) | 80 | if(ENABLE_LIBRESSL_INSTALL) |
