Skip to content
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

meson can't find dependency via cmake #5605

Closed
yshui opened this issue Jul 5, 2019 · 5 comments
Closed

meson can't find dependency via cmake #5605

yshui opened this issue Jul 5, 2019 · 5 comments

Comments

@yshui
Copy link
Contributor

yshui commented Jul 5, 2019

Digging through the log files, I found out cmake failed with:

CMake Error at /usr/share/cmake-3.14/Modules/CheckIncludeFile.cmake:93 (try_compile):
 Unknown extension ".c" for file

   [snip]/meson-private/cmake_prometheus-cpp/CMakeFiles/CMakeTmp/CheckIncludeFile.c

 try_compile() works only for enabled languages.  Currently these are:

   C CXX

 See project() command to enable other languages.

Which is a really absurd error.

Going into the mentioned directory then run cmake manually works.

meson version is 0.51.0

@mensinda
Copy link
Member

mensinda commented Jul 5, 2019

Could you please attach the full log (via pastebin etc.) and the name of the dependency?

@yshui
Copy link
Contributor Author

yshui commented Jul 8, 2019

This is how you reproduce this problem: https://gist.github.com/yshui/f203c379f501cecf4923000bcecc804c

Note, if you comment out the find_dependency(Threads) line in the .cmake, this problem goes away.

@mensinda

@colatkinson
Copy link

I can confirm that this is also affecting me with meson 0.51.0 on Windows 10. I can provide logs if it would be helpful.

@mensinda
Copy link
Member

Should be fixed with #5630.

@yshui
Copy link
Contributor Author

yshui commented Jul 11, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants