Skip to content

Commit d714e74

Browse files
authored
fix: add missing header files during install (#27)
1 parent 7babbbb commit d714e74

File tree

8 files changed

+10
-5
lines changed

8 files changed

+10
-5
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ config_setting(
1616
cc_library(
1717
name = "ncrypto",
1818
srcs = glob(["src/*.cpp"]),
19-
hdrs = glob(["include/*.h"]),
19+
hdrs = glob(["include/*.h", "include/ncrypto/*.h"]),
2020
includes = ["include"],
2121
local_defines = {
2222
"NCRYPTO_BSSL_LIBDECREPIT_MISSING": select(

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ install(
5050
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
5151
COMPONENT ncrypto_development
5252
)
53+
install(
54+
DIRECTORY include/ncrypto
55+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
56+
COMPONENT ncrypto_development
57+
)
5358

5459
install(
5560
TARGETS ncrypto

include/ncrypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,6 @@ class KEM final {
17601760

17611761
#endif // OPENSSL_VERSION_MAJOR >= 3
17621762

1763-
#include "version.h"
1763+
#include "ncrypto/version.h"
17641764

17651765
} // namespace ncrypto
File renamed without changes.

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"release-type": "simple",
55
"extra-files": [
66
"CMakeLists.txt",
7-
"include/version.h"
7+
"include/ncrypto/version.h"
88
]
99
}
1010
}

src/aead.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "ncrypto.h"
44

55
#ifdef OPENSSL_IS_BORINGSSL
6-
#include "aead.h"
6+
#include "ncrypto/aead.h"
77

88
namespace ncrypto {
99

tests/basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <aead.h>
21
#include <ncrypto.h>
2+
#include <ncrypto/aead.h>
33

44
#include <gtest/gtest.h>
55
#include <string>

0 commit comments

Comments
 (0)