jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.19k stars 1.74k forks source link

Problems in configuring project in CMake #906

Closed Mposki closed 4 years ago

Mposki commented 4 years ago

I managed problem while configuring project in CMake with use of libsodium.

First, I added all necessary sodium variables to CMake, but it couldn't configure, which was ended with CMake Error. After adding only sodium_DIR path, CMake still cannot configure program properly.

My program, CMake output log, CMake messages and CMake lists are there: https://github.com/Mposki/SodiumTest.

Thanks for help!

jedisct1 commented 4 years ago

Here's a working CMakeList.txt file of a project that uses libsodium: https://github.com/jedisct1/minisign/blob/master/CMakeLists.txt

jedisct1 commented 4 years ago

There is also a findsodium.Cmake file that may or may not work.