summaryrefslogtreecommitdiff
path: root/brpc.spec
diff options
context:
space:
mode:
Diffstat (limited to 'brpc.spec')
-rw-r--r--brpc.spec6
1 files changed, 4 insertions, 2 deletions
diff --git a/brpc.spec b/brpc.spec
index 1b46568..bd28da7 100644
--- a/brpc.spec
+++ b/brpc.spec
@@ -61,9 +61,11 @@ The %{name} tools.
%autosetup -n %{name}-%{version}
%build
-# Invoke the cmake binary directly instead of the %cmake rpm macros so the
+# Invoke the cmake binary directly instead of the CMake RPM macros so the
# build is portable across builders (including minimal smoke workers that do
-# not ship the cmake macro package).
+# not ship the cmake macro package). NOTE: never spell out the cmake macro
+# name (percent-cmake) in a comment -- rpm expands it even inside comments and
+# the multi-line expansion escapes the comment, injecting a bogus cmake call.
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \