FreeYourSoul / FSeam

Cpp header only library to manage compile time mock class generated via Python script
MIT License
86 stars 8 forks source link

Cannot find catch.hpp #2

Closed tslator closed 5 years ago

tslator commented 5 years ago

Compilation Error While following the directions on the readme, build of FSeam fails with the following error: `In file included from /home/tim/fseaminvestigation/FSeam/build/test/FSeamMockData.hpp:11:0, from /home/tim/fseaminvestigation/FSeam/build/test/FreeFunctionClass.fseam.cc:8: /home/tim/fseaminvestigation/FSeam/test/../FSeam/FSeam/FSeam.hpp:32:10: fatal error: catch.hpp: No such file or directory

include

      ^~~~~~~~~~~

`

Catch builds correctly and catch.hpp can be found in the expected locations: ./home/tim/fseaminvestigation/Catch2/include/catch.hpp ./home/tim/fseaminvestigation/Catch2/single_include/catch2/catch.hpp ./usr/local/include/catch2/catch.hpp

To Reproduce Clone master of Catch2 and FSeam Follow instructions provided in readme. Note: -H. parameter in Catch2 build does not work (cmake version 3.10.02)

Desktop (please complete the following information):

FreeYourSoul commented 5 years ago

I installed Catch2 manually directly at the root of /usr/include, which is an error as the official installation of catch2 creates a folder catch2/catch.hpp. It is fixed (will require a new installation of fseam though as FSeam header file has to be updated to includes

include <catch2/catch.hpp>

It is strange that travis didn't find out this issue though, could you re-try?