I know elementary OS would like to move from cmake to meson, but cmake should still work:

While CMake will continue to work, our official documentation and code examples will all be written around Meson, so it’s best to keep up.

I was trying to compile snaptastic on Juno. I installed cmake and elementary-sdk but I'm still getting the following error:

$ sudo cmake -DCMAKE_INSTALL_PREFIX=/usr ../
[sudo] password for peteruithoven:       
CMake Error at CMakeLists.txt:38 (find_package):
  By not providing "FindVala.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Vala", but
  CMake did not find one.

  Could not find a package configuration file provided by "Vala" with any of
  the following names:


  Add the installation prefix of "Vala" to CMAKE_PREFIX_PATH or set
  "Vala_DIR" to a directory containing one of the above files.  If "Vala"
  provides a separate development package or SDK, be sure it has been

Is there anything else I should install? I feel like I'm missing something like the following package, but I'm not sure how to install it.

1 Answer 1


I'm still on Loki, but it seems like the required FindVala.cmake file would come from cmake-elementary:

$ dpkg-query -L cmake-elementary

which is recommended by elementary-sdk.

  • 1
    Thanks! a "sudo apt install cmake-elementary" indeed did the trick. Sep 17, 2018 at 23:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.