mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-10 01:20:06 +00:00
ci: pass REQ_FS_LIB=ON in case of g++-8 & C++20
This commit is contained in:
parent
d2b1e962c9
commit
07ea5e52e2
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -34,7 +34,8 @@ jobs:
|
||||
- name: Configure
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
if [[ "${{ matrix.compiler }}" == "g++-8" && "${{ matrix.standard }}" == "17" ]] ; then
|
||||
if [[ "${{ matrix.compiler }}" == "g++-8" && ( "${{ matrix.standard }}" == "17" || "${{ matrix.standard }}" == "20" ) ]]
|
||||
then
|
||||
cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_REQUIRE_FILESYSTEM_LIBRARY=ON
|
||||
else
|
||||
cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }}
|
||||
|
@ -182,7 +182,7 @@ foreach(TEST_NAME ${TEST_NAMES})
|
||||
target_link_libraries(${TEST_NAME} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} toml11::toml11)
|
||||
|
||||
# to compile tests with <filesystem>...
|
||||
if(TOML11_REQUIRE_FILESYSTEM_LIBRARY AND ${CMAKE_CXX_STANDARD} STREQUAL "17")
|
||||
if(TOML11_REQUIRE_FILESYSTEM_LIBRARY)
|
||||
if(TOML11_WITH_LIBCXX_LIBRARY)
|
||||
target_link_libraries(${TEST_NAME} "c++fs")
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user