#
# Configuration
#
+include(GNUInstallDirs)
include(GenerateConfigurationFile)
include(GenerateVersionFile)
#
# Installation
#
-include(GNUInstallDirs)
install(TARGETS ccache DESTINATION ${CMAKE_INSTALL_BINDIR})
#
#cmakedefine _WIN32_WINNT @_WIN32_WINNT@
// clang-format on
+#define SYSCONFDIR "@CMAKE_INSTALL_FULL_SYSCONFDIR@"
+
#ifdef __clang__
# pragma clang diagnostic pop
#endif
#include <limits>
-#define STRINGIFY(x) #x
-#define TO_STRING(x) STRINGIFY(x)
-
using nonstd::nullopt;
using nonstd::optional;
using nonstd::string_view;
if (p) {
config.set_primary_config_path(p);
} else {
- config.set_secondary_config_path(
- fmt::format("{}/ccache.conf", TO_STRING(SYSCONFDIR)));
+ config.set_secondary_config_path(fmt::format("{}/ccache.conf", SYSCONFDIR));
MTR_BEGIN("config", "conf_read_secondary");
// A missing config file in SYSCONFDIR is OK so don't check return value.
config.update_from_file(config.secondary_config_path());