Re: [CMake] FindOpenSSL.cmake
Andrew, FindOpenSSL provides an "OPENSSL_ROOT_DIR" variable which allows you to specify the root directory of your installation (assuming a traditional layout within that directory.) Hopefully this will do what you need. Good luck! Kyle On Fri, 2019-02-01 at 16:18 -0500, Andrew Bell wrote: > I have a system-provided SSL and I have a newer one that I have > installed via a packaging system. In my build system I have: > find_package(OPENSSL 1.1) . This properly finds the version 1.1 > header files for openSSL, but it finds the incompatible system > libraries, which are older than version 1.1. A look at > FindOpenSSL.cmake makes it seem as if the version is used when > finding the header files, but not the libraries. Other than > overriding cache entries, is there a way to fix the > FindOpenSSL.cmake that would solve the problem? Other suggestions? > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: http://www. > cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For > more information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at http://www.kitware.com/op > ensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] FindOpenSSL.cmake
Officially, CMake modules are supposed to mark cache variables like this as advanced so they disappear as soon as they are set. Since it is finding DLL files the cache variables are being set and immediately hidden in the advanced section of the cache. You should be able to get at them from the advanced section of the cache editor and change them to the appropriate .LIB files to work around the issue (choose advanced from the select dropdown). The reason why it is detecting DLL files should be investigated. Can you please open a bug ticket with the information here? Also it should contain: 1. What version of OpenSSL are you using (precompiled or did you build it yourself). If the former please point to the location on the net, if the latter please include a directory listing of the install prefix. 2. What generator/compiler are you using with CMake (MinGW? Visual Studio X?) http://www.cmake.org/Bug On Tue, Aug 31, 2010 at 4:35 PM, Dixon, Shane shane.di...@atmel.com wrote: I’m having some trouble with the FindOpenSSL.cmake. While troubleshooting, I noticed that it has this line: MARK_AS_ADVANCED(OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) Yet the OPENSSL_LIBRARIES never show up in the cmake-gui. I’m running 2.8.2 on Windows XP. Can someone tell me if I’m wrong to expect that to show up in the GUI when the “advanced” checkbox is checked? The OPENSSL_LIBRARIES always gets populated with .dll files instead of .lib files. I was going to manually set it to the correct thing (which seems to be the point of setting a variable to advanced) and the variable doesn’t show up at all. -- Shane ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Philip Lowman ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake