mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
Merge topic 'DoNotInvokeCPackAtCMakeTime-forCMakeTests'
b47cffaCPack: Use bin subdir when looking for dpkg and rpmbuilda8c659cFind dpkg and rpmbuild in usual Fink and MacPort paths848f220Do not run cpack at CMake time it is not available.
This commit is contained in:
@@ -35,7 +35,10 @@ public:
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
// on MacOS enable CPackDeb iff dpkg is found
|
||||
return cmSystemTools::FindProgram("dpkg") != "" ? true : false;
|
||||
std::vector<std::string> locations;
|
||||
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
|
||||
return true;
|
||||
|
||||
@@ -39,6 +39,9 @@ public:
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
// on MacOS enable CPackRPM iff rpmbuild is found
|
||||
std::vector<std::string> locations;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user