Skip to content
Snippets Groups Projects
Verified Commit 901ec5e3 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Remove manual link of std::filesystem since we dropped support for gcc8

parent 72f9a20c
Branches reportContent
No related tags found
No related merge requests found
Pipeline #5303 passed
......@@ -3,16 +3,8 @@ include_directories(../tests)
add_executable(room_feed room_feed.cpp)
target_link_libraries(room_feed MatrixClient::MatrixClient)
include(CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX("filesystem" HAVE_STD_FILESYSTEM)
if (HAVE_STD_FILESYSTEM)
add_executable(media_downloader media_downloader.cpp)
target_link_libraries(media_downloader MatrixClient::MatrixClient)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_link_libraries(media_downloader stdc++fs)
endif()
endif()
add_executable(media_downloader media_downloader.cpp)
target_link_libraries(media_downloader MatrixClient::MatrixClient)
add_executable(memberstats memberstats.cpp)
target_link_libraries(memberstats MatrixClient::MatrixClient)
......
......@@ -4,13 +4,11 @@ room_feed = executable('room_feed',
include_directories : '../tests'
)
if meson.get_compiler('cpp').has_header('filesystem')
media_downloader = executable('media_downloader',
'media_downloader.cpp',
dependencies: [matrix_client_dep],
include_directories : '../tests'
)
endif
simple_bot = executable('memberstats',
'memberstats.cpp',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment