Skip to content

Comments

fix bug to download and build gtest also when being a cmake subproject#48

Merged
gbmhunter merged 1 commit intogbmhunter:masterfrom
alexg-k:master
May 30, 2024
Merged

fix bug to download and build gtest also when being a cmake subproject#48
gbmhunter merged 1 commit intogbmhunter:masterfrom
alexg-k:master

Conversation

@alexg-k
Copy link

@alexg-k alexg-k commented May 29, 2024

I included this repo as a git submodule in my project and included it via the add_subdirectory(lib/CppLinuxSerial) command in my top-level CMakeLists.txt to the build environment.

Right now the build then fails with the message:

CMake Error at lib/CppLinuxSerial/CMakeLists.txt:23 (message):
  CMake step for googletest failed: No such file or directory

With this pull request this error is resolved and the build succeeds.

@gbmhunter gbmhunter merged commit cf0520e into gbmhunter:master May 30, 2024
@gbmhunter
Copy link
Owner

Thanks @alexg-k for this fix!

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