From: Elan Ruusamäe Date: Thu, 30 Apr 2015 13:53:24 +0000 (+0300) Subject: leave comment why CMAKE_BUILD_TYPE override is neccessary X-Git-Tag: auto/th/CGAL-4.6-2~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2FCGAL.git;a=commitdiff_plain;h=f7efb94b403b683c7c98bd9ba357b7ea09501b23 leave comment why CMAKE_BUILD_TYPE override is neccessary --- 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} \ ..