UI: fix access of freed memory in buttons handling code.
[blender-staging.git] / build_files / cmake / RpmBuild.cmake
index 19943fd14cbe5526156d5e521f45131cc3d168c3..2c821a9dd7a0270492357f8fd89ca5ae77c2baf3 100644 (file)
@@ -7,28 +7,13 @@ find_program(RPMBUILD
     NAMES rpmbuild
     PATHS "/usr/bin")
 
-if ( RPMBUILD )
-    get_filename_component(RPMBUILD_PATH ${RPMBUILD} ABSOLUTE)
-    message(STATUS "Found rpmbuild : ${RPMBUILD_PATH}")
-    set(RPMBUILD_FOUND "YES")
-else ( RPMBUILD ) 
-    message(STATUS "rpmbuild NOT found. RPM generation will not be available")
-    set(RPMBUILD_FOUND "NO")
-endif ( RPMBUILD )
-#
-# VLMC RPM Finder
-# Authors: Rohit Yadav <rohityadav89@gmail.com>
-#
-
-find_program(RPMBUILD
-    NAMES rpmbuild
-    PATHS "/usr/bin")
+mark_as_advanced(RPMBUILD)
 
-if ( RPMBUILD )
+if(RPMBUILD)
     get_filename_component(RPMBUILD_PATH ${RPMBUILD} ABSOLUTE)
     message(STATUS "Found rpmbuild : ${RPMBUILD_PATH}")
     set(RPMBUILD_FOUND "YES")
-else ( RPMBUILD 
+else(RPMBUILD
     message(STATUS "rpmbuild NOT found. RPM generation will not be available")
     set(RPMBUILD_FOUND "NO")
-endif ( RPMBUILD )
+endif()