mirror of
https://github.com/reactos/CMake.git
synced 2024-12-11 05:14:00 +00:00
CPack: Use bin subdir when looking for dpkg and rpmbuild
This commit is contained in:
parent
a8c659cd6e
commit
b47cffa9b8
@ -36,8 +36,8 @@ public:
|
||||
#ifdef __APPLE__
|
||||
// on MacOS enable CPackDeb iff dpkg is found
|
||||
std::vector<std::string> locations;
|
||||
locations.push_back("/sw"); // Fink
|
||||
locations.push_back("/opt/local"); //MacPort
|
||||
locations.push_back("/sw/bin"); // Fink
|
||||
locations.push_back("/opt/local/bin"); // MacPorts
|
||||
return cmSystemTools::FindProgram("dpkg",locations) != "" ? true : false;
|
||||
#else
|
||||
// legacy behavior on other systems
|
||||
|
@ -40,8 +40,8 @@ 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
|
||||
locations.push_back("/sw/bin"); // Fink
|
||||
locations.push_back("/opt/local/bin"); // MacPorts
|
||||
return cmSystemTools::FindProgram("rpmbuild") != "" ? true : false;
|
||||
#else
|
||||
// legacy behavior on other systems
|
||||
|
Loading…
Reference in New Issue
Block a user