From 3a1220d07ef17cc9c7c5b839164a5c4f83b0dd69 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 21 Feb 2021 13:41:24 +0100 Subject: [PATCH] reformat compile definitions --- src/CMakeLists.txt | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7f88442d8..415a4c09f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -227,11 +227,24 @@ generate_source_groups(${SOURCE_FILES}) add_executable(${PROJECT_NAME} ${SOURCE_FILES}) -target_compile_definitions(${PROJECT_NAME} PRIVATE CHATTERINO UNICODE AB_CUSTOM_THEME AB_CUSTOM_SETTINGS IRC_STATIC IRC_NAMESPACE=Communi) +target_compile_definitions(${PROJECT_NAME} PRIVATE + CHATTERINO + UNICODE + AB_CUSTOM_THEME + AB_CUSTOM_SETTINGS + IRC_STATIC + IRC_NAMESPACE=Communi + ) if (USE_SYSTEM_QT5KEYCHAIN OR USE_PACKAGE_MANAGER) - target_compile_definitions(${PROJECT_NAME} PRIVATE CMAKE_BUILD) + target_compile_definitions(${PROJECT_NAME} PRIVATE + CMAKE_BUILD + ) endif () -target_compile_definitions(${PROJECT_NAME} PRIVATE CHATTERINO_GIT_HASH=\"${GIT_HASH}\" CHATTERINO_GIT_RELEASE=\"${GIT_RELEASE}\" CHATTERINO_GIT_COMMIT=\"${GIT_COMMIT}\") +target_compile_definitions(${PROJECT_NAME} PRIVATE + CHATTERINO_GIT_HASH=\"${GIT_HASH}\" + CHATTERINO_GIT_RELEASE=\"${GIT_RELEASE}\" + CHATTERINO_GIT_COMMIT=\"${GIT_COMMIT}\" + ) if (WIN32) target_compile_definitions(${PROJECT_NAME} PRIVATE USEWINSDK) set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)