Skip to content
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

cmake_minimum_required(VERSION 3.18 FATAL_ERROR) #373

Open
vt-alt opened this issue Dec 1, 2021 · 5 comments
Open

cmake_minimum_required(VERSION 3.18 FATAL_ERROR) #373

vt-alt opened this issue Dec 1, 2021 · 5 comments

Comments

@vt-alt
Copy link
Member

vt-alt commented Dec 1, 2021

cmake_minimum_required(VERSION 3.18 FATAL_ERROR)

А зачем требуемая версия cmake поднята до 3.18? В коммите объяснения нет. Я на Ubuntu 18.04.3 LTS† ставил 3.10 и ничего не сломалось.
__
† На Intel DevCloud.

@beldmit
Copy link
Contributor

beldmit commented Dec 1, 2021

Что-то не работало при сборке с отдельно стоящим openssl 3.0

@vt-alt
Copy link
Member Author

vt-alt commented Dec 1, 2021

отдельно стоящим

Из исходников? Ну вот работает в моём примере. (Я только не тестировал perl).

@beldmit
Copy link
Contributor

beldmit commented Dec 4, 2021

https://cmake.org/cmake/help/latest/module/FindOpenSSL.html

Поддержка 3.0 появилась в 3.18. @mattcaswell это выяснил, мне пожаловался, и версию пришлось поднять.

@vt-alt
Copy link
Member Author

vt-alt commented Dec 4, 2021

Так, а что именно не работало?

@beldmit
Copy link
Contributor

beldmit commented Dec 6, 2021

$ cmake -DOPENSSL_ROOT_DIR=/usr/local/openssl/3.0/ ..
CMake Error at
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146
(message):
   Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
   system variable OPENSSL_ROOT_DIR: Found unsuitable version "1.1.1k", but
   required is at least "3.0" (found /usr/local/lib/libcrypto.so)
Call Stack (most recent call first):
   /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391
(_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-3.16/Modules/FindOpenSSL.cmake:447
(find_package_handle_standard_args)
   CMakeLists.txt:11 (find_package)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants