RpmBuild.cmake 448 B

1234567891011121314151617181920212223242526
  1. #
  2. # VLMC RPM Finder
  3. # Authors: Rohit Yadav <rohityadav89@gmail.com>
  4. #
  5. if(NOT DEFINED RPMBUILD)
  6. find_program(RPMBUILD
  7. NAMES rpmbuild
  8. PATHS "/usr/bin")
  9. mark_as_advanced(RPMBUILD)
  10. if(RPMBUILD)
  11. message(STATUS "RPM Build Found: ${RPMBUILD}")
  12. else()
  13. message(STATUS "RPM Build Not Found (rpmbuild). RPM generation will not be available")
  14. endif()
  15. endif()
  16. if(RPMBUILD)
  17. set(RPMBUILD_FOUND TRUE)
  18. else()
  19. set(RPMBUILD_FOUND FALSE)
  20. endif()