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 /include | |
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 'include')
-rw-r--r-- | include/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 44ab86b..ca81ee8 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt | |||
@@ -4,7 +4,10 @@ if(ENABLE_LIBRESSL_INSTALL) | |||
4 | PATTERN "CMakeLists.txt" EXCLUDE | 4 | PATTERN "CMakeLists.txt" EXCLUDE |
5 | PATTERN "compat" EXCLUDE | 5 | PATTERN "compat" EXCLUDE |
6 | PATTERN "pqueue.h" EXCLUDE | 6 | PATTERN "pqueue.h" EXCLUDE |
7 | PATTERN "Makefile*" EXCLUDE) | 7 | PATTERN "Makefile*" EXCLUDE |
8 | PATTERN "arch" EXCLUDE) | ||
9 | install(FILES ${CMAKE_BINARY_DIR}/include/openssl/opensslconf.h | ||
10 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/openssl") | ||
8 | endif(ENABLE_LIBRESSL_INSTALL) | 11 | endif(ENABLE_LIBRESSL_INSTALL) |
9 | 12 | ||
10 | if(HOST_AARCH64) | 13 | if(HOST_AARCH64) |
@@ -28,4 +31,4 @@ elseif(HOST_SPARC64) | |||
28 | elseif(HOST_X86_64) | 31 | elseif(HOST_X86_64) |
29 | file(READ arch/amd64/opensslconf.h OPENSSLCONF) | 32 | file(READ arch/amd64/opensslconf.h OPENSSLCONF) |
30 | endif() | 33 | endif() |
31 | file(WRITE openssl/opensslconf.h "${OPENSSLCONF}") | 34 | file(WRITE ${CMAKE_BINARY_DIR}/include/openssl/opensslconf.h "${OPENSSLCONF}") |