UI: fix access of freed memory in buttons handling code.
[blender-staging.git] / build_files / cmake / RpmBuild.cmake
index 90f69d9b3346f8db52f0651c39426d88d28e8b46..2c821a9dd7a0270492357f8fd89ca5ae77c2baf3 100644 (file)
@@ -7,11 +7,13 @@ find_program(RPMBUILD
     NAMES rpmbuild
     PATHS "/usr/bin")
 
-if ( RPMBUILD )
+mark_as_advanced(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()