Cmake - pack_rebuild

Does pack_rebuild/1 allow the use of cmake for add-ons?

Not directly at the moment. AFAIK, it looks for

  • configure.ac or configure.in
    In this case it runs autoheader and autoconf to create configure
  • configure
    In this case it runs this
  • Makefile
    In this case it runs make

So, you can add a simple configure script that calls cmake and all should work fine. Ideally there should be a FindSWI-Prolog.cmake that would define a CMake target that lets you link against SWI-Prolog. If you have experience writing such a thing, please contribute.

1 Like