patch from IRIE Shinsuke, use systems openjpeg on *nix.
[blender.git] / build_files / cmake / RpmBuild.cmake
1 #
2 # VLMC RPM Finder
3 # Authors: Rohit Yadav <rohityadav89@gmail.com>
4 #
5
6 find_program(RPMBUILD
7     NAMES rpmbuild
8     PATHS "/usr/bin")
9
10 if ( RPMBUILD )
11     get_filename_component(RPMBUILD_PATH ${RPMBUILD} ABSOLUTE)
12     message(STATUS "Found rpmbuild : ${RPMBUILD_PATH}")
13     set(RPMBUILD_FOUND "YES")
14 else ( RPMBUILD ) 
15     message(STATUS "rpmbuild NOT found. RPM generation will not be available")
16     set(RPMBUILD_FOUND "NO")
17 endif ( RPMBUILD )