mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-19 17:37:45 +02:00
Be more compatible to older CMake versions
This commit is contained in:
parent
2c69844cad
commit
1b3e262a5b
3 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,8 @@ option(UBSAN "Enable UndefinedBehaviorSanitizer" OFF)
|
||||||
option(TIDY "Enable clang tidy" OFF)
|
option(TIDY "Enable clang tidy" OFF)
|
||||||
|
|
||||||
IF (REVISION)
|
IF (REVISION)
|
||||||
add_compile_definitions(REVISION=\"${REVISION}\")
|
# add_compile_definitions(REVISION=\"${REVISION}\")
|
||||||
|
add_definitions(-DREVISION=\"${REVISION}\")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF (TIDY)
|
IF (TIDY)
|
||||||
|
|
|
@ -421,7 +421,7 @@ int main(int argc, char** argv)
|
||||||
io_context.stop();
|
io_context.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
LOG(INFO, LOG_TAG) << "Snapclient v" << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << " started\n";
|
LOG(INFO, LOG_TAG) << "Version " << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << "\n";
|
||||||
|
|
||||||
// Setup metadata handling
|
// Setup metadata handling
|
||||||
auto meta(metaStderr ? std::make_unique<MetaStderrAdapter>() : std::make_unique<MetadataAdapter>());
|
auto meta(metaStderr ? std::make_unique<MetaStderrAdapter>() : std::make_unique<MetadataAdapter>());
|
||||||
|
|
|
@ -226,7 +226,7 @@ int main(int argc, char* argv[])
|
||||||
else
|
else
|
||||||
throw SnapException("Invalid log sink: " + settings.logging.sink);
|
throw SnapException("Invalid log sink: " + settings.logging.sink);
|
||||||
|
|
||||||
LOG(INFO, LOG_TAG) << "Snapserver v" << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << " started\n";
|
LOG(INFO, LOG_TAG) << "Version " << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << "\n";
|
||||||
|
|
||||||
if (!streamValue->is_set() && !sourceValue->is_set())
|
if (!streamValue->is_set() && !sourceValue->is_set())
|
||||||
settings.stream.sources.push_back(sourceValue->value());
|
settings.stream.sources.push_back(sourceValue->value());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue