Another fix for the cmake version in EL6.

This commit is contained in:
Richard M. Shaw 2012-05-04 14:32:43 -05:00
parent fc9b49eb6c
commit 4fc2f74187
1 changed files with 3 additions and 1 deletions

View File

@ -86,10 +86,12 @@ rm -f ext/lcms*
rm -f ext/tinyxml*
rm -f ext/yaml*
# Try building for EPEL w/ cmake 2.6.
# Deal with building for EPEL w/ cmake 2.6.
%if 0%{?el6}
sed -i -e 's|cmake_minimum_required(VERSION 2.8)|cmake_minimum_required(VERSION 2.6)|' \
-e '/include(ExternalProject)/d' CMakeLists.txt
sed -i 's|pkg_check_modules(LCMS QUIET lcms2)|pkg_check_modules(LCMS lcms2)|' \
src/apps/ociobakelut/CMakeLists.txt
%endif