From 7605238ef80edb586d80d30ad2f5c1fcdd6de6d3 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Mon, 19 Apr 2021 07:02:20 +0000 Subject: cmake: change BUILD_EXAMPLES to default to OFF This makes the project easier to use as an add_subdirectory in a larger project without needing to explicitly disable this feature. As a minor side-effect: BUILD_EXAMPLES now requires BUILD_SHARED_LIBS=ON. While there isn't a technical limitation, it makes the CMake code easier to reason about, and is believed this will not impact a lot of users. If this ends up being a problem, it can be reconsidered. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c3ffde..61a021c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,6 @@ jobs: shell: bash run: | cmake -E make_directory build/ - cmake -S . -B build/ -DCMAKE_C_FLAGS=" /W4" + cmake -S . -B build/ -DBUILD_EXAMPLES=ON -DCMAKE_C_FLAGS=" /W4" cmake --build build/ --config Debug --target INSTALL ctest -V ./build/ -- cgit v1.2.1