diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:13:36 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:13:36 +0900 |
commit | c7e7052d699542fbe94879852faf729de70b9c95 (patch) | |
tree | b81166e27b6130606f67d117c9c73f26ccb8de5d /Source/CPack | |
parent | d18ced6c90451a31ea45d399979b7814f07770b1 (diff) | |
download | cmake-c7e7052d699542fbe94879852faf729de70b9c95.tar.gz cmake-c7e7052d699542fbe94879852faf729de70b9c95.tar.bz2 cmake-c7e7052d699542fbe94879852faf729de70b9c95.zip |
Imported Upstream version 3.13.2upstream/3.13.2
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cpack.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index c08394530..623cdcd75 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -88,6 +88,15 @@ int cpackDefinitionArgument(const char* argument, const char* cValue, return 1; } +static void cpackProgressCallback(const char* message, float progress, + void* clientdata) +{ + (void)progress; + (void)clientdata; + + std::cout << "-- " << message << std::endl; +} + // this is CPack. int main(int argc, char const* const* argv) { @@ -201,6 +210,7 @@ int main(int argc, char const* const* argv) cmake cminst(cmake::RoleScript); cminst.SetHomeDirectory(""); cminst.SetHomeOutputDirectory(""); + cminst.SetProgressCallback(cpackProgressCallback, nullptr); cminst.GetCurrentSnapshot().SetDefaultDefinitions(); cmGlobalGenerator cmgg(&cminst); cmMakefile globalMF(&cmgg, cminst.GetCurrentSnapshot()); |