RpmBuild.cmake 460 B

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