Reproducing the porting example

We will start from the v8.1.0290 release tag of the Vim source code repository (https://github.com/vim/vim) and base our work on the Git commit hash b476cb7. The following steps can be reproduced by cloning the source code repository of Vim and checking out that particular version of the code:

$ git clone --single-branch -b v8.1.0290 https://github.com/vim/vim.git

Alternatively, our solution can be found on the cmake-support branch at https://github.com/dev-cafe/vim and cloned to your computer using this:

$ git clone --single-branch -b cmake-support https://github.com/dev-cafe/vim

In this example, we will emulate a ./configure --enable-gui=no configuration in CMake, built with the GNU compiler collection.

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.