Find dpkg and rpmbuild in usual Fink and MacPort paths
This commit is contained in:
parent
848f2201c5
commit
a8c659cd6e
@ -35,7 +35,10 @@ public:
|
|||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// on MacOS enable CPackDeb iff dpkg is found
|
// on MacOS enable CPackDeb iff dpkg is found
|
||||||
return cmSystemTools::FindProgram("dpkg") != "" ? true : false;
|
std::vector<std::string> locations;
|
||||||
|
locations.push_back("/sw"); // Fink
|
||||||
|
locations.push_back("/opt/local"); //MacPort
|
||||||
|
return cmSystemTools::FindProgram("dpkg",locations) != "" ? true : false;
|
||||||
#else
|
#else
|
||||||
// legacy behavior on other systems
|
// legacy behavior on other systems
|
||||||
return true;
|
return true;
|
||||||
|
@ -39,6 +39,9 @@ public:
|
|||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// on MacOS enable CPackRPM iff rpmbuild is found
|
// 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;
|
return cmSystemTools::FindProgram("rpmbuild") != "" ? true : false;
|
||||||
#else
|
#else
|
||||||
// legacy behavior on other systems
|
// legacy behavior on other systems
|
||||||
|
Loading…
x
Reference in New Issue
Block a user