Closed Oddegamra closed 1 year ago
As this should be handled, could you provide a step-by-step to reproduce? Including what downloaded from where and extracted to where, set options etc.
For me, these steps allow reproduction of the issue:
cmake -S <path to extracted archive> -B <build location of choice>
=> Project : cryptopp-cmake v8.8.0
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.39.2.windows.1")
-- Crypto++ auto fetched at: C:/Users/x/Downloads/cryptopp-cmake-CRYPTOPP_8_8_0/build/cryptopp
fatal: not a git repository (or any of the parent directories): .git
CMake Error at CMakeLists.txt:221 (string):
string sub-command STRIP requires two arguments.
In the root CMakeLists.txt file, Git is used to determine the branch of the cryptopp-cmake sources when they are added in a parent CMake project with
add_subdirectory
. This call fails, however, if the release package of cryptopp-cmake is used, since no.git
directory is found (and the parent project is not versioned with.git
, either). In addition, thecryptopp_GIT_BRANCH
variable will then be empty.Thus, CMake will abort with the following subsequent error:
For reference, Windows 10/CMake 3.26.4 and cryptopp-cmake v8.8.0 were used for testing.