Merge branch 'blender2.7'
[blender.git] / build_files / cmake / RpmBuild.cmake
1 #
2 # VLMC RPM Finder
3 # Authors: Rohit Yadav <rohityadav89@gmail.com>
4 #
5
6 if(NOT DEFINED RPMBUILD)
7
8         find_program(RPMBUILD
9                 NAMES rpmbuild
10                 PATHS "/usr/bin")
11
12         mark_as_advanced(RPMBUILD)
13
14         if(RPMBUILD)
15                 message(STATUS "RPM Build Found: ${RPMBUILD}")
16         else()
17                 message(STATUS "RPM Build Not Found (rpmbuild). RPM generation will not be available")
18         endif()
19
20 endif()
21
22 if(RPMBUILD)
23         set(RPMBUILD_FOUND TRUE)
24 else()
25         set(RPMBUILD_FOUND FALSE)
26 endif()