noloader / cryptopp-cmake

CMake files for Crypto++ project
BSD 3-Clause "New" or "Revised" License
92 stars 68 forks source link

Cannot find source file: /usr/ports/security/cryptopp/work/cryptopp-7.0.0_1/bench3.cpp #45

Closed yurivict closed 5 years ago

yurivict commented 5 years ago

While trying in the FreeBSD port context, it fails:

-- Configuring done
CMake Error at CMakeLists.txt:1086 (add_executable):
  Cannot find source file:

    /usr/ports/security/cryptopp/work/cryptopp-7.0.0_1/bench3.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:1086 (add_executable):
  No SOURCES given to target: cryptest

rev. b97d72f cryptopp-7.0.0

noloader commented 5 years ago

Thanks @yurivict.

/usr/ports/security/cryptopp/work/cryptopp-7.0.0_1/bench3.cpp

Forgive my ignorance... What version of Crypto++ does FreeBSD distribute?

bench3.cpp was added recently. We took bench1.cpp and bench2.cpp and refactored them into 3 benchmark files to help SunCC and avoid OOM kills on low resource devices. Also see Commit 1f914feaf994.

The tip of crpytopp-cmake follows the tip of Wei Dai's cryptopp master. If you are using a release tarball like 7.0, then you should keep them paired. You might want to grab the 7.0 version of CMake at cryptopp-cmake | releases.

You can also check it out from a clone using tag CRYPTOPP_7_0_0. Both cryptopp and cryptopp-cmake (and cryptopp-autotools) use the same tags.