cmake: Use CMAKE_MESSAGE_INDENT if available

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2022-05-31 22:33:34 +02:00
parent 56f50fcc54
commit 65afefd0ba
1 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,13 @@
# CMake Setup
cmake_minimum_required(VERSION 3.13...4.0)
if(${CMAKE_VERSION} VERSION_LESS 3.19)
set(LOGPREFIX "[StreamFX]")
else()
list(APPEND CMAKE_MESSAGE_INDENT "[StreamFX]")
set(LOGPREFIX "")
endif()
################################################################################
# Configure Type
################################################################################
@ -29,7 +36,6 @@ else()
set(GROUPED ON)
set(PREFIX "StreamFX_")
endif()
set(LOGPREFIX "StreamFX:")
################################################################################
# Versioning