noloader / cryptopp-cmake

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

cryptest runs in the wrong directory when project is used as a dependency in another project #97

Closed abdes closed 2 years ago

abdes commented 2 years ago

The crypto++ unit test program needs to be running in the directory where the TestData and the TestVectors are located. We need to make sure that the working directory of the test program is always the same no matter if the project is a master project or a sub-project.

Use ${PROJECT_BINARY_DIR} instead of ${CMAKE_BINARY_DIR}.