[OpenColorIO/el6] Fix cmake version check.
Richard Shaw
hobbes1069 at fedoraproject.org
Tue May 1 21:29:00 UTC 2012
commit 8dd6b90e8f910a9cbd454b52d1ad3515cd46dcbd
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date: Tue May 1 16:28:58 2012 -0500
Fix cmake version check.
OpenColorIO.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/OpenColorIO.spec b/OpenColorIO.spec
index 9ec2a10..602ab3a 100644
--- a/OpenColorIO.spec
+++ b/OpenColorIO.spec
@@ -86,6 +86,11 @@ rm -f ext/lcms*
rm -f ext/tinyxml*
rm -f ext/yaml*
+# Try building for EPEL w/ cmake 2.6.
+%if 0%{?el6}
+sed -i 's|cmake_minimum_required(VERSION 2.8)|cmake_minimum_required(VERSION 2.6)|' CMakeLists.txt
+%endif
+
%build
rm -rf build && mkdir build && pushd build
More information about the scm-commits
mailing list