Fix not making library include path public

This broke embedding the qjs library via CMake.
This commit is contained in:
Saúl Ibarra Corretgé 2023-11-24 22:36:58 +01:00
parent ff5e8dc3f5
commit 0bbb78ce5e

View file

@ -145,7 +145,10 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
DUMP_LEAKS DUMP_LEAKS
) )
endif() endif()
target_include_directories(qjs PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(qjs PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
# QuickJS bytecode compiler # QuickJS bytecode compiler