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)