UI: fix access of freed memory in buttons handling code.
[blender-staging.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 mark_as_advanced(RPMBUILD)
11
12 if(RPMBUILD)
13     get_filename_component(RPMBUILD_PATH ${RPMBUILD} ABSOLUTE)
14     message(STATUS "Found rpmbuild : ${RPMBUILD_PATH}")
15     set(RPMBUILD_FOUND "YES")
16 else(RPMBUILD) 
17     message(STATUS "rpmbuild NOT found. RPM generation will not be available")
18     set(RPMBUILD_FOUND "NO")
19 endif()