Closed lzjluzijie closed 6 months ago
OK I solved this issue. It seems ippcrypto
is not installed to the target directory when install this project. I added
find_package(IPPCP
HINTS pailliercryptolib/build1/ext_ipp-crypto/ippcrypto_install/opt/intel/ipcl1/
REQUIRED)
target_link_libraries(projectIPPCP::ippcp)
and it worked.
My CMake project link this library by
and I can use encrypt/decrypt normally.
However, if I add serialization
CMake will throw error
If I comment out line
ipcl::serializer::serialize(os, pt);
, it will build successfully.I am not very familiar with cpp/cmake. I am able to build the library and all unit tests including serialization tests. I think my CMakeLists.txt might be wrong, but I don't know how to fix it. Thank you for any suggestion.