|
Notes |
|
|
(0040256)
|
|
Nils Gladitz
|
|
2016-01-19 09:08
|
|
When I try your test case on my Ubuntu system I get the following output (CMake 3.4.1):
CURL_FOUND
/usr/include
/usr/lib/x86_64-linux-gnu/libcurl.so
/usr/include
/usr/lib/x86_64-linux-gnu/libcurl.so
Your first message() call outputs the string "CURL_FOUND" not the content
of the CURL_FOUND variable; beyond that the output looks as expected.
I can't tell where it might be failing for you but perhaps the FindCURL.cmake relevant output from cmake in --trace mode would help narrow it down. |
|
|
|
(0040257)
|
|
Lars Kühne
|
|
2016-01-19 09:31
|
|
I should have written ${CURL_FOUND}. It was a typo, but its value is "true".
Shame on me: the problem is not in FindCURL.cmake, but more likely in this https://github.com/watchedit/CMakeModules/blob/master/FindJansson.cmake [^]
script I used in my project too. When executing this script BEFORE I call find_package(CURL), the mentioned variables are empty. When calling find_package(CURL) first, everything is set as expected. I'm not a CMake expert, so I don't understand why. Reversing the order of the calls in this case worked for me.
Thanks for your help, and sorry for the noise. Issue can be closed. |
|
|
|
(0041286)
|
|
Kitware Robot
|
|
2016-06-10 14:21
|
|
|
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|