diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fa9258..806919b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,18 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_COMPILER "/usr/bin/g++-12") set(CMAKE_PREFIX_PATH "/usr") +# Set default build type if not specified +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) +endif() + +# Set compiler flags based on build type +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + add_compile_options(-g) +else() + add_compile_options(-O2) +endif() + add_executable(${PROJECT_NAME} src/main.cpp src/broadcast.h src/broadcast.cpp diff --git a/src/app.cpp b/src/app.cpp index ea3cf16..8507567 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -61,7 +61,7 @@ App::~App() { void App::setMetaTags() { removeMetaHeader(Wt::MetaHeaderType::Meta, "robots"); addMetaHeader("keywords", "chat,single chat,images,no registration,anonymous,direct chat,search,searchable,international,free,no cost,private chat,private"); - addMetaHeader(Wt::MetaHeaderType::Meta, "robots", ""); + addMetaHeader(Wt::MetaHeaderType::Meta, "robots", "index,nofollow"); addMetaHeader(Wt::MetaHeaderType::Meta, "google-adsense-account", "ca-pub-1104166651501135"); }