Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
CMake: Improve config installation #2849
Use 'GNUInstallDirs' standard module to set destinations of installed files.
Use uppercase "CURL" names instead of lowercase "curl" to match standard
Use 'configure_package_config_file' function to generate 'CURLConfig.cmake'
Condition for calling 'find_dependency' should match condition
if(CMAKE_USE_OPENSSL) find_package(OpenSSL ...) ... endif()
Means in 'curl-config.cmake.in':
if("@CMAKE_USE_OPENSSL@") find_dependency(OpenSSL ...) endif()
This breaks all CMake projects that depend on libcurl - only projects without specified components (== curl binary AND libcurl library) are working, projects that require library only must change their sources to be 7.62 compatible.