From a6f5573898b91f57d7f8c770359a469a5a4d1284 Mon Sep 17 00:00:00 2001 From: nonorze-VOXX Date: Sat, 17 Feb 2024 02:10:16 +0800 Subject: [PATCH 1/4] cmake color flag --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7972216b..13f80c94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(PracticalToolsForSimpleDesign) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_COLOR_DIAGNOSTICS ON) if (MSVC) set(TARGET_COMPILE_OPTIONS /W4 From c5d59dd0e66792a9eb6c9d754b7288fced15a9db Mon Sep 17 00:00:00 2001 From: nonorze-VOXX Date: Sat, 17 Feb 2024 17:57:46 +0800 Subject: [PATCH 2/4] move cmake color to doc --- CMakeLists.txt | 2 +- README.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13f80c94..fc63b52e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(PracticalToolsForSimpleDesign) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -set(CMAKE_COLOR_DIAGNOSTICS ON) +# set(CMAKE_COLOR_DIAGNOSTICS ON) if (MSVC) set(TARGET_COMPILE_OPTIONS /W4 diff --git a/README.md b/README.md index f4ae6546..9766fa11 100644 --- a/README.md +++ b/README.md @@ -48,4 +48,10 @@ Required: Doxygen 1.9.6 doxygen docs/Doxyfile ``` +## cmake color +if output accept, release this line to CMakeLists.txt. +``` +set(CMAKE_COLOR_DIAGNOSTICS ON) +``` + Open the generated documents with your favorite browser at `docs/html/index.html` From d2086ec3d1dbfbf9f09397405a2abd8e77858257 Mon Sep 17 00:00:00 2001 From: nonorze-VOXX Date: Tue, 20 Feb 2024 23:47:07 +0800 Subject: [PATCH 3/4] move readme --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9766fa11..440cba3a 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ cmake --build build > If using Neovim or other LSP supported editors, append `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` to the generation command for `clangd` to work +> if output accept, release this line in CMakeLists.txt `set(CMAKE_COLOR_DIAGNOSTICS ON)` to get colorful output. + ### VSCode TODO @@ -48,10 +50,4 @@ Required: Doxygen 1.9.6 doxygen docs/Doxyfile ``` -## cmake color -if output accept, release this line to CMakeLists.txt. -``` -set(CMAKE_COLOR_DIAGNOSTICS ON) -``` - Open the generated documents with your favorite browser at `docs/html/index.html` From db9aa160a043615cfdcd60ed5dde5e6721aa7c73 Mon Sep 17 00:00:00 2001 From: nonorze-VOXX Date: Tue, 20 Feb 2024 23:49:27 +0800 Subject: [PATCH 4/4] add url --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 440cba3a..71df16f5 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ cmake --build build > If using Neovim or other LSP supported editors, append `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` to the generation command for `clangd` to work > if output accept, release this line in CMakeLists.txt `set(CMAKE_COLOR_DIAGNOSTICS ON)` to get colorful output. +(CMAKE_COLOR_DIAGNOSTICS document)[https://cmake.org/cmake/help/latest/variable/CMAKE_COLOR_DIAGNOSTICS.html] ### VSCode