Skip to content

Commit 866ce50

Browse files
committed
Rename BUILD_DOCS to SPARROW_IPC_BUILD_DOCS for consistency
1 parent 89cce14 commit 866ce50

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
cache-downloads: true
2222

2323
- name: Configure using CMake
24-
run: cmake -G Ninja -Bbuild -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_DOCS=ON
24+
run: cmake -G Ninja -Bbuild -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSPARROW_IPC_BUILD_DOCS=ON
2525

2626
- name: Build docs target
2727
run: cmake --build build --target docs

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ endif()
4444
OPTION(SPARROW_IPC_BUILD_TESTS "Build sparrow-ipc test suite" OFF)
4545
MESSAGE(STATUS "🔧 Build tests: ${SPARROW_IPC_BUILD_TESTS}")
4646

47-
OPTION(BUILD_DOCS "Build sparrow-ipc documentation" OFF)
48-
MESSAGE(STATUS "🔧 Build docs: ${BUILD_DOCS}")
47+
OPTION(SPARROW_IPC_BUILD_DOCS "Build sparrow-ipc documentation" OFF)
48+
MESSAGE(STATUS "🔧 Build docs: ${SPARROW_IPC_BUILD_DOCS}")
4949

5050
# Code coverage
5151
# =============
@@ -175,7 +175,7 @@ endif()
175175

176176
# Docs
177177
# ====
178-
if(BUILD_DOCS)
178+
if(SPARROW_IPC_BUILD_DOCS)
179179
message(STATUS "📚 Create docs targets")
180180
add_subdirectory(docs)
181181
endif()

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def generate(self):
8888
tc = CMakeToolchain(self)
8989
tc.variables["SPARROW_IPC_BUILD_SHARED"] = self.options.shared
9090
tc.variables["SPARROW_IPC_BUILD_TESTS"] = self.options.build_tests
91-
tc.variables["BUILD_DOCS"] = self.options.generate_documentation
91+
tc.variables["SPARROW_IPC_BUILD_DOCS"] = self.options.generate_documentation
9292
tc.generate()
9393

9494
def build(self):

docs/source/dev_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ List of CMake options:
77
- `ACTIVATE_LINTER`: Create targets to run clang-format and clang-tidy (default: OFF)
88
- `ACTIVATE_LINTER_DURING_COMPILATION`: Run linter during the compilation (default: OFF),
99
requires `ACTIVATE_LINTER` to be ON
10-
- `BUILD_DOCS`: Build the documentation (default: OFF)
10+
- `SPARROW_IPC_BUILD_DOCS`: Build the documentation (default: OFF)
1111
- `SPARROW_IPC_BUILD_TESTS`: Build the tests (default: OFF)
1212
- `SPARROW_IPC_BUILD_SHARED`: Build sparrow-ipc as a shared library (default: ON)
1313
- `SPARROW_IPC_ENABLE_COVERAGE`: Enable coverage reporting (default: OFF)

0 commit comments

Comments
 (0)