Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation issue with google test #809

Closed
pythonmobile opened this issue Apr 11, 2024 · 4 comments · Fixed by #813
Closed

compilation issue with google test #809

pythonmobile opened this issue Apr 11, 2024 · 4 comments · Fixed by #813

Comments

@pythonmobile
Copy link

Perhaps there are compilation instructions somewhere that I missed for C++?

CMake Error at CMakeLists.txt:214 (add_subdirectory):
  add_subdirectory given source "/tmp/Clipper2/CPP/Tests/googletest/" which
  is not an existing directory.


CMake Error at CMakeLists.txt:215 (set_target_properties):
  set_target_properties Can not find target to add properties to: gtest
@AngusJohnson
Copy link
Owner

CMake creates both the Tests and googletest folders in my Windows PC without any problems.
Unfortunately I don't know how to improve CMake to force this on your (?Linux) PC.
My only suggestion is to create these two folders manually and then reloading the CMake script.

@reunanen
Copy link
Contributor

Note that as of #745, googletest is no longer a submodule (rationale). So you may need to clone it separately?

cd CPP/Tests
git clone https://github.com/google/googletest

@AngusJohnson
Copy link
Owner

Thanks Juha. I'll add this as a comment into the CMake file.

@reunanen
Copy link
Contributor

In addition, guessing it ought to be possible to make CMake do this automatically. I could have a look into that – but if someone wants to do it before I get to it, no problem for me. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants