summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2021-04-19 07:02:20 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2021-04-19 00:16:12 -0700
commit7605238ef80edb586d80d30ad2f5c1fcdd6de6d3 (patch)
tree9846b27499f67d3a9c7ada5a5e365396a8adf6ec /.github
parent45fbf2577decfeec6020e4897887dd213588332b (diff)
downloadrabbitmq-c-7605238ef80edb586d80d30ad2f5c1fcdd6de6d3.tar.gz
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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml2
1 files changed, 1 insertions, 1 deletions
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/