mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-05 08:45:23 +00:00
Pass optional dependency on Boost::filesystem to downstream projects.
This commit is contained in:
committed by
Kai Blaschke
parent
6e93c1f624
commit
2c5a763dc1
@ -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()
|
||||
|
||||
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user