whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

cmake : Update to more modern version

Open asmaloney opened this issue 2 years ago • 0 comments

  • update from 3.0 (from 2014) to 3.19 (from 2020)
  • move some global setting onto the targets (through a cmake include)

Right now it's not possible to include whisper.cpp using add_subdirectory() because it modifies the global cmake state (C++ version, install paths, etc.).

This PR starts to move it towards a proper target-based approach.

I created a cmake include file to more easily set the defaults on the many examples, though it could just as well be copied into each file if you like.

I don't have a way to test the EMSCRIPTEN changes, but they mirror all the other examples.

asmaloney avatar Dec 31 '22 23:12 asmaloney