mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
7432ef206e
Alex
15 lines
393 B
CMake
15 lines
393 B
CMake
IF(CMAKE_BINARY_DIR)
|
|
MESSAGE(FATAL_ERROR "CPackRPM.cmake may only be used by CPack internally.")
|
|
ENDIF(CMAKE_BINARY_DIR)
|
|
|
|
IF(NOT UNIX)
|
|
MESSAGE(FATAL_ERROR "CPackRPM.cmake may only be used under UNIX.")
|
|
ENDIF(NOT UNIX)
|
|
|
|
FIND_PROGRAM(RPMBUILD_EXECUTABLE rpmbuild)
|
|
|
|
IF(NOT RPMBUILD_EXECUTABLE)
|
|
MESSAGE(FATAL_ERROR "RPM package requires rpmbuild executable")
|
|
ENDIF(NOT RPMBUILD_EXECUTABLE)
|
|
|