diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-08 11:33:42 -0400 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-08 11:33:42 -0400 |
commit | 7432ef206e47118d8812be5dc62c7250c9e0bfdd (patch) | |
tree | d103f0a5fa3a97c614d1876b494e0515507a3b8b /Modules/CPackRPM.cmake | |
parent | b34078bca98a052907bb1198e2301d1223b3aae0 (diff) | |
download | cmake-7432ef206e47118d8812be5dc62c7250c9e0bfdd.tar.gz |
ENH: add empty RPM package generator, Eric Noulard wants to work on it
Alex
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r-- | Modules/CPackRPM.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake new file mode 100644 index 0000000000..dc6cd1f950 --- /dev/null +++ b/Modules/CPackRPM.cmake @@ -0,0 +1,14 @@ +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) + |