Skip to content

Commit fa8ffaf

Browse files
nikhilmthughes
authored andcommitted
cmake: Install v8 headers include/node
1 parent 1b6b090 commit fa8ffaf

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

cmake/libv8.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(V8_INCLUDE_NAMES v8.h v8-debug.h v8-profiler.h)
1+
set(V8_INCLUDE_NAMES v8.h v8-debug.h v8-profiler.h v8stdint.h)
22
set(V8_LIBRARY_NAMES v8)
33

44
if(SHARED_V8)
@@ -12,4 +12,14 @@ else()
1212
set(v8_fn "libv8.a")
1313
endif()
1414
set(V8_LIBRARY_PATH "${PROJECT_BINARY_DIR}/deps/v8/${v8_fn}")
15+
install(DIRECTORY
16+
## Do NOT remove the trailing slash
17+
## it is required so that v8 headers are
18+
## copied directly into include/node
19+
## rather than in a subdirectory
20+
## See CMake's install(DIRECTORY) manual for details
21+
${V8_INCLUDE_DIR}/
22+
23+
DESTINATION include/node
24+
)
1525
endif()

0 commit comments

Comments
 (0)