Skip to content

Fix macOS/iOS test GoogleTest includes - #1518

Merged
bmehta001 merged 1 commit into
microsoft:mainfrom
bmehta001:bmehta001-fix-macos-ios-test-gtest
Aug 7, 2026
Merged

Fix macOS/iOS test GoogleTest includes#1518
bmehta001 merged 1 commit into
microsoft:mainfrom
bmehta001:bmehta001-fix-macos-ios-test-gtest

Conversation

@bmehta001

@bmehta001 bmehta001 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Attach GoogleTest/GoogleMock include paths to FuncTests and UnitTests through a target-level interface configuration

  • Fail at configure time with a clear message when the GoogleTest submodule is unavailable.

  • Use canonical CMake 4.3+ SQLite3::SQLite3 targets, with compatibility aliases for older CMake versions.

Validation

  • CMake 4.4 configure succeeds with both test targets enabled.
  • Functional test sources, including APITest.cpp, compile with the propagated GoogleTest headers.
  • Full Windows link was blocked by the existing legacy out/gtest/gtest.lib path convention.

Attach GoogleTest include paths to test targets and use the canonical SQLite3 target while retaining compatibility with older CMake releases.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bmehta001
bmehta001 requested a review from a team as a code owner August 5, 2026 04:02
@bmehta001
bmehta001 merged commit 55aa8fa into microsoft:main Aug 7, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants