noloader / cryptopp-cmake

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

standard-cpm test case not running properly when in a sub-project #98

Closed abdes closed 2 years ago

abdes commented 2 years ago

When cryptopp-cmake is used as a subproject, the build directory and the cryptopp-cmake source directory paths are pointing to locations in the host project and not correctly pointing to the cryptopp-cmake project.

Make the paths specific by using CMAKE_CURRENT_BINARY_DIR and CMAKE_CURRENT_SOURCE_DIR.