therefore, I will answer this question again, since I need more space than the comment allows.
The “something obvious” I missed was that I accessed these values before calling “project (Foo),” and at this point CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES have not yet been initialized. good to know anyway!
I checked the conditions on whether it is possible to create the main project at all, and also check if the new version of cmake is enough and should be downloaded and created before anything else. on the other hand, under the cmake convention, you need to specify which minimum version you need before you issue any project commands. do you see a dead end there? therefore, if I needed to build a new version of cmake on the fly, OpenSSL should be enabled, if possible. it was discovered with find_package(OpenSSL) , but it, in turn, gained access to the un-initialized CMAKE_FIND_LIBRARY_PREFIXES and it all broke.
daniel.wirtz
source share