Skip to content

Commit

Permalink
CMake: Copy public headers to the build directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
FtZPetruska committed Aug 19, 2023
1 parent 3145895 commit 5432e22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ if(ENABLE_LIBRESSL_INSTALL)
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/openssl")
endif(ENABLE_LIBRESSL_INSTALL)

file(COPY .
DESTINATION "${CMAKE_BINARY_DIR}/include"
PATTERN "CMakeLists.txt" EXCLUDE
PATTERN "compat" EXCLUDE
PATTERN "pqueue.h" EXCLUDE
PATTERN "Makefile*" EXCLUDE
PATTERN "arch" EXCLUDE)

if(HOST_AARCH64)
file(READ arch/aarch64/opensslconf.h OPENSSLCONF)
elseif(HOST_ARM)
Expand Down

0 comments on commit 5432e22

Please sign in to comment.