From 611395f1e3ebd5d8cabd20d1ac9cb36b2ac121c3 Mon Sep 17 00:00:00 2001 From: Cyphrixz Date: Mon, 13 Jul 2026 16:24:38 +0530 Subject: [PATCH 1/2] CMakeLists Changes 1. If config.json is not found, it will give error 2. Instead of saying 'system installed dpp' say 'DPP is already there in {source location} --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed8472d..24438ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,20 +22,20 @@ if (NOT dpp_FOUND) add_library(dpp::dpp ALIAS dpp) endif() else() - message(STATUS "Using system-installed DPP") + message(STATUS "DPP is already installed. Skipping this step...") endif() if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/config.json) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/config.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) else() - message(STATUS "src/config.json not found; skipping config copy") + message(FATAL_ERROR "src/config.json NOT FOUND! Please place the folder in the src/ folder.") endif() file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/res DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) add_executable(bot src/main.cpp - #globals + # globals src/globals/globals.cpp src/globals/globals.h From 039139c6be188ec4ea8a00df1dbe107986a9c975 Mon Sep 17 00:00:00 2001 From: Cyphrixz Date: Mon, 13 Jul 2026 16:26:28 +0530 Subject: [PATCH 2/2] Cmake Lists changes Forgot to save the file lol --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24438ab..5e2842d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ if (NOT dpp_FOUND) add_library(dpp::dpp ALIAS dpp) endif() else() - message(STATUS "DPP is already installed. Skipping this step...") + message(STATUS "DPP is already there in ${dpp_DIR}. Skipping this step...") endif() if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/config.json)