CMake Generate step failed. Build files cannot be regenerated correctly.
I have been facing this issue after executing ./build.sh --full on my terminal which I was using on Ubuntu via vbox
- Configuring done CMake Error at CMakeLists.txt:122 (add_executable): Cannot find source file
CMake Error at CMakeLists.txt:122 (add_executable): No SOURCES given to target: sipp_unittest
I see the same issue on Centos 7. It looks the problem was inserted in https://github.com/SIPp/sipp/pull/553
cmake . -DUSE_SSL=1 -DUSE_SCTP=1 -DUSE_PCAP=1 -- Configuring done CMake Error at CMakeLists.txt:122 (add_executable): Cannot find source file:
/root/sipp-master-github/sipp/gtest/googletest/src/gtest-all.cc
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
CMake Error at CMakeLists.txt:122 (add_executable): No SOURCES given to target: sipp_unittest
Try:
git submodule sync
git submodule update --init
then build again.
Yes, that solved the problem
But - it is better to mention in Documentation that you have external dependencies
Good point. Can you create a PR for this?
I think the gtest repository update might be a part of cmake. I am not a specialist to be sure though
Try:
git submodule sync git submodule update --initthen build again.
Thank you, I had this same issue and luckily I found this comment!!