2011-02-15 18:33:05 +00:00
|
|
|
#
|
|
|
|
# VLMC RPM Finder
|
|
|
|
# Authors: Rohit Yadav <rohityadav89@gmail.com>
|
|
|
|
#
|
|
|
|
|
2011-10-14 14:01:39 +00:00
|
|
|
if(NOT DEFINED RPMBUILD)
|
2011-02-15 18:33:05 +00:00
|
|
|
|
2011-10-14 14:01:39 +00:00
|
|
|
find_program(RPMBUILD
|
|
|
|
NAMES rpmbuild
|
|
|
|
PATHS "/usr/bin")
|
|
|
|
|
|
|
|
mark_as_advanced(RPMBUILD)
|
|
|
|
|
|
|
|
if(RPMBUILD)
|
|
|
|
message(STATUS "RPM Build Found: ${RPMBUILD}")
|
|
|
|
else(RPMBUILD)
|
|
|
|
message(STATUS "RPM Build Not Found (rpmbuild). RPM generation will not be available")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|
2011-02-21 01:02:30 +00:00
|
|
|
|
|
|
|
if(RPMBUILD)
|
2011-10-14 14:01:39 +00:00
|
|
|
set(RPMBUILD_FOUND TRUE)
|
2011-02-21 01:02:30 +00:00
|
|
|
else(RPMBUILD)
|
2011-10-14 14:01:39 +00:00
|
|
|
set(RPMBUILD_FOUND FALSE)
|
|
|
|
endif()
|