]> git.pld-linux.org Git - packages/CGAL.git/blobdiff - CGAL.spec
leave comment why CMAKE_BUILD_TYPE override is neccessary
[packages/CGAL.git] / CGAL.spec
index 3020b7557058b4f3b1ac60701617b95f425e63d8..62ab570413428ebff15c013bcf2ef06686fd671b 100644 (file)
--- 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} \
        ..
This page took 0.177946 seconds and 4 git commands to generate.