[cmake-developers] [CMake 0015926]: FindCURL.cmake exposed variables are empty

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 19 08:52:29 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15926 
====================================================================== 
Reported By:                Lars Kühne
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15926
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-01-19 08:52 EST
Last Modified:              2016-01-19 08:52 EST
====================================================================== 
Summary:                    FindCURL.cmake exposed variables are empty
Description: 
The FindCURL.cmake module exposes variables CURL_INCLUDE_DIRS and
CURL_LIBRARIES, among others. These variables are empty, even though CURL_FOUND
is true. Internally, the FindCURL.cmake script uses CURL_INCLUDE_DIR and
CURL_LIBRARY variables. These are set correctly to the found locations on my
system. Using these instead of the variables documented in the reference and at
the beginning of the script works.

Steps to Reproduce: 
find_package(CURL REQUIRED)

message(CURL_FOUND)  # true on my system

message(${CURL_INCLUDE_DIRS})  # this fails
message(${CURL_LIBRARIES})     # this too

message(${CURL_INCLUDE_DIR})   # this works
message(${CURL_LIBRARY})       # this too
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-01-19 08:52 Lars Kühne     New Issue                                    
======================================================================



More information about the cmake-developers mailing list