[CMake] Error: XXX is not set. It must be set .... XXXConfig.cmake

Hendrik Sattler post at hendrik-sattler.de
Sat Jul 14 11:41:59 EDT 2007


Am Samstag 14 Juli 2007 17:23 schrieb ope:
> the following error occoured with the entries in my CMakeList.txt
>
> find_package(Curl REQUIRED)
> include_directories(${Curl_INCLUDE_DIR})
> link_directories(${Curl_LIBRARIES})
>
> with cmake CURL_DIR="/usr"

Should be: cmake -DCurl_DIR=/usr

> CMake Error: Curl_DIR is not set.  It must be set to the directory
> containing CurlConfig.cmake in order to use Curl.
>
> The same with zlib. What is wrong here?

Maybe it's case-sensitive? And you missed the -D.

HS


More information about the CMake mailing list