JuliaStrings / utf8proc

a clean C library for processing UTF-8 Unicode data

Home Page:http://juliastrings.github.io/utf8proc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmake instructions reference make

ryanpcmcquen opened this issue · comments

On the README, the cmake instructions are as follows:

Alternatively, you can compile with cmake, e.g. by

mkdir build
cd build
cmake ..
make

But on Windows make won't be available. Is the last make just a typo?

commented

Is the last make just a typo?

It does look like a typo.


These steps work well for both *.nix and win.

mkdir build
cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON
cmake --build build
- name: Run Test
run: ctest --test-dir build -V

Without test:

mkdir build
cmake -S . -B build
cmake --build build

And for MinGW

mkdir build
cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -G'MSYS Makefiles'
cmake --build build
- name: Run Test
run: ctest --test-dir build -V

Updated to use

mkdir build
cmake -S . -B build
cmake --build build