Skip to content

Commit

Permalink
Pass optional dependency on Boost::filesystem to downstream projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
kblaschke committed Jan 17, 2024
1 parent 3e5c5d7 commit 3293ef2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/playlist/FilesystemSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ else()
PUBLIC
Boost::filesystem
)

set(ENABLE_BOOST_FILESYSTEM ON CACHE BOOL "Compiler does not support std::filesystem, reverting to boost::filesystem." FORCE)
endif()
4 changes: 4 additions & 0 deletions src/playlist/projectM4PlaylistConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ set(projectM4Playlist_VERSION @PROJECT_VERSION@)

@PACKAGE_INIT@

if("@ENABLE_BOOST_FILESYSTEM@") # ENABLE_BOOST_FILESYSTEM
find_dependency(Boost COMPONENTS Filesystem)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/projectM4PlaylistTargets.cmake")

0 comments on commit 3293ef2

Please sign in to comment.