-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FetchContent #380
Comments
Ah, thanks! I'm still a bit bewildered by CMake, that should be the right fix for the For the rest... I'm not familiar with FetchContent, probably the issue is that the default directory isn't getting set properly. Can you point me to a full minimal example of what you're trying to do? |
Firstly yes, I think that was the issue. All other Secondly, I got up early this morning to put together an example cmake but could I get include_directories to include directories? Could I bugger. Worked last night. I'll try and get an example to you in the next day or so. |
Let me know if you find the time to put together an example - I think the fix you propose is correct, though it would be good to test it. |
Here's an example of building a pocketsphinx example program using fetchcontent: P.S. I've modified simple.c at line 58 to cast the returned malloc address from void to short pointer otherwise -fpermissive complains this points to a fork of pocketsphinx here: I've made 2 changes that both do the same thing: I've added a project name check around doxygen, program and examples in the main CMakeLists so that these aren't built using fetch content. If you do want to build these using fetch content, it will still fail due to 'check' missing a project name check in programs/CMakeLists.txt which I have also added. Hope this is what you were looking for and as always thank you! |
Oh! Thank you! I turned off GitHub notifications so it took me a while to see this. Will look at it ASAP. |
gentle bump |
Thanks! "shortly" and "ASAP" seem to exist in a different space-time continuum for me lately :) I have marked my calendar to catch up all pocketsphinx-related things on Friday... |
Hi hi! Long time sphinx-fan, first time bug-raiser
Just wanted to report something I found whilst trying to include this library in my latest project using fetch content.
This could very well be a me issue, however in
programs/CMakeLists.txt
, I needed to add the following around the check dependency:I have managed to get pocketsphinx standalone to work with the following CMake, however I do have to provide the
-hmm
,-lm
and-dict
args as I assume I've broken the default configs including this in the project without installing it?Thank you and I hope at least this can help others!
My
CMakeLists.txt
:The text was updated successfully, but these errors were encountered: