Skip to content

Commit 0bbb78c

Browse files
committed
Fix not making library include path public
This broke embedding the qjs library via CMake.
1 parent ff5e8dc commit 0bbb78c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
145145
DUMP_LEAKS
146146
)
147147
endif()
148-
target_include_directories(qjs PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
148+
target_include_directories(qjs PUBLIC
149+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
150+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
151+
)
149152

150153

151154
# QuickJS bytecode compiler

0 commit comments

Comments
 (0)