Fix installation

This commit is contained in:
King_DuckZ 2022-05-14 19:49:29 +02:00
parent 036dd57524
commit d3ad818b8e
2 changed files with 4 additions and 2 deletions

View file

@ -13,4 +13,6 @@ include_files = [
'wren_types.hpp',
]
if not meson.is_subproject()
install_data(sources: include_files, install_dir: 'include/wrenpp')
endif

View file

@ -65,7 +65,7 @@ wrenpp = library(meson.project_name(),
'src/class_manager.cpp',
dependencies: [wren_dep],
include_directories: public_incl,
install: true,
install: (not meson.is_subproject() or get_option('default_library')=='shared'),
)
wrenpp_dep = declare_dependency(
link_with: wrenpp,