[packages/CGAL] leave comment why CMAKE_BUILD_TYPE override is neccessary
glen
glen at pld-linux.org
Thu Apr 30 15:53:28 CEST 2015
commit f7efb94b403b683c7c98bd9ba357b7ea09501b23
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Apr 30 16:53:24 2015 +0300
leave comment why CMAKE_BUILD_TYPE override is neccessary
CGAL.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/CGAL.spec b/CGAL.spec
index 3020b75..62ab570 100644
--- a/CGAL.spec
+++ b/CGAL.spec
@@ -61,8 +61,12 @@ demos of CGAL algorithms.
%build
install -d build
cd build
-# what is ${CHANGE_SOVERSION} here?
+# override build type, because:
+# PLD is not a valid build type: only Release or Debug is allowed
+
+# XXX: what is ${CHANGE_SOVERSION} here?
%cmake \
+ -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
-DCGAL_INSTALL_LIB_DIR=%{_lib} \
-DCGAL_INSTALL_DOC_DIR= ${CHANGE_SOVERSION} \
..
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/CGAL.git/commitdiff/f7efb94b403b683c7c98bd9ba357b7ea09501b23
More information about the pld-cvs-commit
mailing list