diff --git a/.github/workflows/gen_bind.yml b/.github/workflows/gen_bind.yml index 9fcfdb733..265d8942c 100644 --- a/.github/workflows/gen_bind.yml +++ b/.github/workflows/gen_bind.yml @@ -25,6 +25,7 @@ jobs: triple: aarch64-apple-darwin runs-on: ${{ matrix.target.os }} steps: + - uses: lukka/get-cmake@v3.23.0 - uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} diff --git a/crates/openjtalk-sys/build.rs b/crates/openjtalk-sys/build.rs index 4c0d26691..2a19837db 100644 --- a/crates/openjtalk-sys/build.rs +++ b/crates/openjtalk-sys/build.rs @@ -8,7 +8,7 @@ fn main() { } #[cfg(not(feature = "generate-bindings"))] -fn generate_bindings(include_dir: impl AsRef) {} +fn generate_bindings(#[allow(unused_variables)] include_dir: impl AsRef) {} #[cfg(feature = "generate-bindings")] fn generate_bindings(include_dir: impl AsRef) { diff --git a/crates/openjtalk-sys/openjtalk/CMakeLists.txt b/crates/openjtalk-sys/openjtalk/CMakeLists.txt index 19a1d7755..d86f66cde 100644 --- a/crates/openjtalk-sys/openjtalk/CMakeLists.txt +++ b/crates/openjtalk-sys/openjtalk/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.16) +project(OpenJtalkSys) include(FetchContent) FetchContent_Declare( @@ -7,9 +8,11 @@ FetchContent_Declare( GIT_TAG 1.11 SOURCE_SUBDIR src) FetchContent_MakeAvailable(openjtalk) +add_library(OpenJtalkSys src/openjtalk.cpp) +target_link_libraries(OpenJtalkSys PUBLIC openjtalk) install( - TARGETS openjtalk + TARGETS OpenJtalkSys ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION lib)