From 88fcd7702b3859627b3e67c9143ddd1000a6d4f1 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 4 Nov 2024 21:23:48 +0800 Subject: [PATCH] =?UTF-8?q?config=EF=BC=9A=E6=B7=BB=E5=8A=A0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=AD=96=E7=95=A5=E5=8F=AF=E4=BB=A5=E4=BB=8E=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=AD=E8=8E=B7=E5=8F=96boost=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- .vscode/settings.json | 4 ++-- CMakeLists.txt | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5b861d3..0d45a24 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build .vs .cache -cmake-* \ No newline at end of file +cmake-* +.DS_Store \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 2a48940..8e8ad70 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { "files.autoSave": "onFocusChange", - "editor.fontSize": 14, - "editor.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono'", + //"editor.fontSize": 14, + //"editor.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono'", "cmake.configureOnOpen": true, "cmake.debugConfig": { "console": "integratedTerminal", diff --git a/CMakeLists.txt b/CMakeLists.txt index 441d600..bedd0a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,8 @@ set(SOURCES_FILE resource.h resource.cpp ) +# 默认可以从环境中获取boost +cmake_policy(SET CMP0167 NEW) set(Boost_USE_STATIC_LIBS OFF) find_package(Boost REQUIRED program_options filesystem) include_directories(${Boost_INCLUDE_DIR})