forked from bartvdbraak/blender
26 lines
464 B
CMake
26 lines
464 B
CMake
#
|
|
# VLMC RPM Finder
|
|
# Authors: Rohit Yadav <rohityadav89@gmail.com>
|
|
#
|
|
|
|
if(NOT DEFINED RPMBUILD)
|
|
|
|
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()
|
|
|
|
if(RPMBUILD)
|
|
set(RPMBUILD_FOUND TRUE)
|
|
else(RPMBUILD)
|
|
set(RPMBUILD_FOUND FALSE)
|
|
endif() |