// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #include std::string jfjoch_git_sha1() { return "@GIT_SHA1@"; } std::string jfjoch_git_date() { return "@GIT_DATE@"; } std::string jfjoch_version() { return "@JFJOCH_VERSION@"; } std::string jfjoch_build_cxx_flags() { return "@JFJOCH_BUILD_CXX_FLAGS@"; } std::string jfjoch_build_compiler() { return "@JFJOCH_BUILD_COMPILER@"; } std::string jfjoch_build_cuda() { return "@JFJOCH_BUILD_CUDA@"; } std::string jfjoch_build_info(bool with_cuda) { std::string out = jfjoch_build_compiler(); if (with_cuda) out += jfjoch_build_cuda().empty() ? ", no CUDA" : ", CUDA " + jfjoch_build_cuda(); out += jfjoch_build_cxx_flags().empty() ? ", no extra compiler flags" : ", flags " + jfjoch_build_cxx_flags(); return out; }