Skip to content

Add find package gtest and yaml-cpp package#136

Open
aaroncyew wants to merge 3 commits into
intel:mainfrom
aaroncyew:dev/fedora/rawhide/cmake-gtest-yaml-cpp
Open

Add find package gtest and yaml-cpp package#136
aaroncyew wants to merge 3 commits into
intel:mainfrom
aaroncyew:dev/fedora/rawhide/cmake-gtest-yaml-cpp

Conversation

@aaroncyew
Copy link
Copy Markdown
Contributor

  • Check gtest, yaml-cpp package installed in system-wide distribution
  • Package gtest, yaml-cpp could not be found will rollback to submodules

Package name variation between distributions
Fedora/Red Hat/suse: gtest-devel (provides gmock-devel as well), yaml-cpp-devel
Ubuntu/Debian: libgtest-dev, libyaml-cpp-dev

sample output from cmake logs:
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.5.1")
-- Checking for module 'level-zero>=1.27.0'
-- Found level-zero, version 1.28.6
-- LevelZero_INCLUDE_DIRS: /usr/lib64/pkgconfig/../../include/level_zero;/usr/lib64/pkgconfig/../../include
-- LevelZero_LIBRARIES: ze_loader
-- LevelZero_VERSION: 1.28.6
-- Found gtest, version 1.17.0
-- GTest_INCLUDE_DIRS : /usr/include
-- GTest_LIBRARIES : /usr/lib64/libgtest.so.1.17.0
-- GTest_VERSION : 1.17.0
-- GMock_INCLUDE_DIRS : /usr/include
-- GMock_LIBRARIES : /usr/lib64/libgmock.so.1.17.0
-- GMock_VERSION : 1.17.0
-- Level Zero driver version: 1779062400
-- Configuring done (3.7s)
-- Generating done (0.1s)

- Check gtest, yaml-cpp package installed in system-wide distribution
- Package gtest, yaml-cpp could not be found will rollback to submodules

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>
Comment thread third_party/cmake/googletest.cmake Outdated
@@ -0,0 +1,52 @@
#
# Copyright (C) 2022-2024 Intel Corporation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, replace the date to 2026 in license

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes, updated to 2026

Comment thread third_party/cmake/yaml-cpp.cmake Outdated
@@ -0,0 +1,19 @@
#
# Copyright (C) 2022-2024 Intel Corporation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, replace date to 2026 in License

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes, updated to 2026

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