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                                    
======================================================================

-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to