File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,12 @@ if(SDLMIXER_FLAC_LIBFLAC)
578
578
if (NOT SDLMIXER_FLAC_LIBFLAC_SHARED )
579
579
list (APPEND PC_REQUIRES flac )
580
580
endif ()
581
+ # Xiph's CMake script does not handle Threads::Threads correctly:
582
+ # https://github.com/xiph/flac/issues/820
583
+ get_property (flac_interface_link_libraries TARGET FLAC::FLAC PROPERTY INTERFACE_LINK_LIBRARIES )
584
+ if (Threads::Threads IN_LIST flac_interface_link_libraries )
585
+ find_package (Threads )
586
+ endif ()
581
587
else ()
582
588
message (${fatal_error} "libflac NOT found" )
583
589
endif ()
Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL3_mixer-static-targets.cmake")
74
74
75
75
if (SDLMIXER_FLAC_LIBFLAC AND NOT TARGET FLAC::FLAC )
76
76
find_dependency (FLAC )
77
+ # Xiph's CMake script does not handle Threads::Threads correctly:
78
+ # https://github.com/xiph/flac/issues/820
79
+ get_property (flac_interface_link_libraries TARGET FLAC::FLAC PROPERTY INTERFACE_LINK_LIBRARIES )
80
+ if (Threads::Threads IN_LIST flac_interface_link_libraries )
81
+ find_package (Threads )
82
+ endif ()
77
83
endif ()
78
84
79
85
if (SDLMIXER_MOD_XMP AND NOT TARGET libxmp::libxmp )
You can’t perform that action at this time.
0 commit comments