Skip to content

Commit

Permalink
set in cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed May 25, 2024
1 parent 909dca4 commit e39563c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
$release_name = "karbo-cli-win64-$krb_ver"
mkdir "$build_folder"
cd "$build_folder"
cmake -DBoost_DEBUG=ON -G "Visual Studio 16 2019" -A x64 -D_boost_RELEASE_ABI_TAG=- -DBOOST_ROOT="$env:BOOST_ROOT" -DBOOST_INCLUDE_DIRS="$env:BOOST_ROOT/include" ..
cmake -DBoost_DEBUG=ON -G "Visual Studio 16 2019" -A x64 -DBOOST_ROOT="$env:BOOST_ROOT" -DBOOST_INCLUDE_DIRS="$env:BOOST_ROOT/include" ..
msbuild Karbowanec.sln /p:Configuration=Release /m
cd src\Release
Compress-Archive -Path *.exe -DestinationPath "$release_name.zip"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:
$release_name = "Karbo-cli-win64-$krb_ver"
mkdir "$build_folder"
cd "$build_folder"
cmake -DBoost_DEBUG=ON -G "Visual Studio 16 2019" -A x64 -DBoost_USE_STATIC_LIBS=ON -DBoost_NO_BOOST_CMAKE=ON -DBOOST_ROOT="$env:BOOST_ROOT" -DBOOST_INCLUDE_DIRS="$env:BOOST_ROOT/include" ..
cmake -DBoost_DEBUG=ON -G "Visual Studio 16 2019" -A x64 -DBOOST_ROOT="$env:BOOST_ROOT" -DBOOST_INCLUDE_DIRS="$env:BOOST_ROOT/include" ..
cmake -DBoost_DEBUG=ON -G "Visual Studio 16 2019" -A x64 -DBOOST_ROOT="$env:BOOST_ROOT" -DBOOST_INCLUDE_DIRS="$env:BOOST_ROOT/include" ..
msbuild Karbowanec.sln /p:Configuration=Release /m
cd src\Release
Compress-Archive -Path *.exe -DestinationPath "$release_name.zip"
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ endif()
set(Boost_NO_BOOST_CMAKE ON)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
if(WIN32 AND NOT MINGW)
set( _boost_RELEASE_ABI_TAG "-")
endif()

find_package(Boost REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options coroutine context atomic)
message(STATUS "Boost Found: ${Boost_INCLUDE_DIRS}")
Expand Down

0 comments on commit e39563c

Please sign in to comment.