RpmBuild.cmake 446 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#
# VLMC RPM Finder
# Authors: Rohit Yadav <rohityadav89@gmail.com>
#

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 )