Some checks failed
android / build (arm64-v8a) (push) Failing after 20s
android / build (armeabi-v7a) (push) Failing after 22s
android / build (x86) (push) Failing after 19s
android / build (x86_64) (push) Failing after 20s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 5m31s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Has been cancelled
linux-arm-gcc / linux-gcc-arm (Debug) (push) Has been cancelled
linux-arm-gcc / linux-gcc-arm (Release) (push) Has been cancelled
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Has been cancelled
linux-arm-gcc / linux-gcc-armhf (Release) (push) Has been cancelled
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Has been cancelled
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Has been cancelled
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Has been cancelled
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Has been cancelled
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Has been cancelled
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Has been cancelled
linux-x64-clang / linux-clang (Debug) (push) Has been cancelled
linux-x64-clang / linux-clang (Release) (push) Has been cancelled
linux-x64-gcc / linux-gcc (Release) (push) Has been cancelled
linux-x64-gcc / linux-gcc (Debug) (push) Has been cancelled
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 3m36s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 4m11s
21 lines
579 B
C++
21 lines
579 B
C++
#include <iostream>
|
|
#include <gflags/gflags.h>
|
|
|
|
DEFINE_string(message, "Hello World!", "The message to print");
|
|
|
|
static bool ValidateMessage(const char* flagname, const std::string &message)
|
|
{
|
|
return !message.empty();
|
|
}
|
|
DEFINE_validator(message, ValidateMessage);
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
gflags::SetUsageMessage("Test CMake configuration of gflags library (gflags-config.cmake)");
|
|
gflags::SetVersionString("0.1");
|
|
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
|
std::cout << FLAGS_message << std::endl;
|
|
gflags::ShutDownCommandLineFlags();
|
|
return 0;
|
|
}
|