Skip to content

Commit 99e8dee

Browse files
committed
chore: add explicit PUBLIC scope to macOS target_link_libraries
Follow-up to PR #22 (Issue #21) - clarify CMake scope keywords: - target_compile_options: PRIVATE (don't force compile flags on consumers) - target_link_libraries: PUBLIC (auto-propagate link dependencies to consumers) This ensures users linking ccap automatically get the required Apple frameworks without manually adding them to their projects.
1 parent 4dc22f5 commit 99e8dee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ endif()
159159

160160
if(APPLE)
161161
target_compile_options(ccap PRIVATE -fobjc-arc)
162-
target_link_libraries(ccap
162+
target_link_libraries(ccap PUBLIC
163163
"-framework Foundation"
164164
"-framework AVFoundation"
165165
"-framework CoreVideo"

0 commit comments

Comments
 (0)