i guess i'm missing something very obvious here, but it seems to me that the cmake variables CMAKE_FIND_LIBRARY_PREFIXES/CMAKE_FIND_LIBRARY_SUFFIXES
are not set to any "decent" default value depending on the current system/settings! i've checked the cmake docs and google, but there seems nothing about it really.
for example, a simple CMakeLists.txt essentially calling find_package(OpenSSL REQUIRED)
will break unless you set the variables in your main file or directly invoke cmake -DCMAKE_FIND_LIBRARY_PREFIXES=lib -DCMAKE_FIND_LIBRARY_SUFFIXES=.so ..
(on ubuntu w openssl/libssl-dev installed)
on the other hand, the default values PREFIX/SUFFIX for targets are initialized "correctly" for each platform, even considering BUILD_SHARED_LIBS etc. why not for find_library?
does anyone know why/what the suggested (users) behaviour should be?
you see the deadlock there?
actually no, I don't see :) When you, for example, set minimum version to 2.8 it will work for both 2.8 and 3.1. To check the exact version of cmake you can use CMAKE_VERSION variable. – Gains