Skip to content

Commit 92430d8

Browse files
committed
add flags in windows
1 parent 698e94d commit 92430d8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
rm -rf build
3333
3434
- name: configure
35-
run: cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1
35+
run: BOOST_ROOT=$BOOST_ROOT_1_72_0 cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1
3636

3737
- name: build
3838
run: cmake --build build --config Debug -j4

cmake/Boost.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ set(Boost_USE_RELEASE_LIBS ON) # only find release libs
1111
set(Boost_USE_MULTITHREADED ON)
1212
set(Boost_USE_STATIC_RUNTIME OFF)
1313
find_package(Boost 1.70.0 REQUIRED COMPONENTS system)
14+
15+
# attempt fixes from @al-cheb
16+
# https://github.com/actions/virtual-environments/issues/370#issuecomment-586209745
17+
if(WIN32)
18+
add_definitions(-DBOOST_ALL_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_THREAD_DYN_LINK)
19+
endif()

0 commit comments

Comments
 (0)