config:添加默认策略可以从环境中获取boost。

This commit is contained in:
taynpg 2024-11-04 21:23:48 +08:00
parent fda7e465d8
commit 88fcd7702b
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
build
.vs
.cache
cmake-*
cmake-*
.DS_Store

View File

@ -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",

View File

@ -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})