R3BRootGroup / R3BRoot

Framework for Simulations and Data Analysis of R3B Experiment
https://github.com/R3BRootGroup/R3BRoot/wiki
GNU General Public License v3.0
18 stars 102 forks source link

Could NOT find GTest #1080

Closed ManuelXarepe closed 1 month ago

ManuelXarepe commented 1 month ago

Describe the bug

When trying to cmake a newer version of R3BRoot, we run into the CMAKE error in the picture below. I tested this with an old version of R3BRoot from February, and it works fine.

To Reproduce Steps to reproduce the behavior:

  1. source /u/land/fake_cvmfs/sourceme.sh
  2. In the build directory run cmake PATH/TO/R3BRoot

Expected behavior Finish cmake

Logs / Screenshots

error

System information (please complete the following information):

jose-luis-rs commented 1 month ago

Hello @ManuelXarepe

You can comment this line

find_package(GTest REQUIRED)

in R3BRoot/CMakeLists.txt

@YanzhaoW, please, could you change the use of GTest only for tests in GitHub? Thanks

YanzhaoW commented 1 month ago

Hi, @ManuelXarepe

Sorry that I just saw your post. I will fix this today.

@jose-luis-rs

I think we could just do

find_package(GTest)

Without REQUIRED, CMake will not load GTest if it doesn't exist.

jose-luis-rs commented 1 month ago

Thanks @YanzhaoW

YanzhaoW commented 1 month ago

Hi, @ManuelXarepe

Could you test out the latest version and see whether it fixes the issue?