-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add building with pem-pack #108
Conversation
@Vollstrecker thanks for the future. I am new to cpp. How should I include the pem.h? When I use CMakeLists.txt content
|
Looks like your chainbuilding. If you always do it like that, you could use a define instead of cryptopp/ and set it to "${cryptopp-pem_SOURCE_DIR}/". Or you install cryptopp as the headers should be installed with it. But I see no pem.h in the list, just pem_common.h and (without checking) I'm sure that means this file does not exist at all. |
thanks for the answer but as I am new to cpp could not understand what should I do? Can you help me with an updated CmakeLists.txt please? Thanks! this is what I have currently:
|
Now I checked and add pem.h. You need something like 'target_compile_definitions(foo PRIVATE PEM_PATH="${cryptopp-pem_SOURCE_DIR}") and your your source your replace cryptopp with PEM_PATH. If you start detecting an installed cryptopp you guard that with #if not defined and set it to cryptopp. |
thanks @Vollstrecker I tried the new master but getting this error during cmake configure
|
This happens when you something fast online. Should be fixed now |
update: all working thanks @Vollstreckerthank you @Vollstrecker but still I could not make it work. Even if I manually add pem.h it is giving error: PEM_Load and PEM_Save is undefined. I don't know what I am missing here |
To be honest, beside the tip "don'hardcode that path" I can only tell you to find out what's happening. The docs tell us just to compile the files into the lib and that's what has been done. |
fixes: #97
As requested here the option to compile with pem. There are no test for it as the scripts show it relies on openssh and other external progs to generate test-input.