summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackRPMGenerator.h
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2012-07-02 17:49:07 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2012-07-02 17:49:07 (GMT)
commita8c659cd6e39b14efb015e2bbee14b146a9f3be5 (patch)
tree8771cf55cabd1ff2ef82c72179504c2041f639cb /Source/CPack/cmCPackRPMGenerator.h
parent848f2201c59c3d19243ed093db6e9ffbfd7b4698 (diff)
downloadCMake-a8c659cd6e39b14efb015e2bbee14b146a9f3be5.zip
CMake-a8c659cd6e39b14efb015e2bbee14b146a9f3be5.tar.gz
CMake-a8c659cd6e39b14efb015e2bbee14b146a9f3be5.tar.bz2
Find dpkg and rpmbuild in usual Fink and MacPort paths
Diffstat (limited to 'Source/CPack/cmCPackRPMGenerator.h')
-rw-r--r--Source/CPack/cmCPackRPMGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackRPMGenerator.h b/Source/CPack/cmCPackRPMGenerator.h
index eec8204..c7dace4 100644
--- a/Source/CPack/cmCPackRPMGenerator.h
+++ b/Source/CPack/cmCPackRPMGenerator.h
@@ -39,6 +39,9 @@ public:
{
#ifdef __APPLE__
// on MacOS enable CPackRPM iff rpmbuild is found
+ std::vector<std::string> locations;
+ locations.push_back("/sw"); // Fink
+ locations.push_back("/opt/local"); //MacPort
return cmSystemTools::FindProgram("rpmbuild") != "" ? true : false;
#else
// legacy behavior on other systems