Pass optional dependency on Boost::filesystem to downstream projects.

This commit is contained in:
Kai Blaschke
2024-01-17 17:08:15 +01:00
committed by Kai Blaschke
parent 6e93c1f624
commit 2c5a763dc1
2 changed files with 6 additions and 0 deletions

View File

@ -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()

View File

@ -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")