curl - FindCURL doesn't support using CURL_ROOT variable -


when used gtest library on cmake, use gtest_root finding root path of gtest. however, cannot use curl_root use curl, because findcurl.cmake doesn't variable.

how can do?

use cmake_prefix_path variable. may use semicolon(;) multiple paths.

on script:

set (cmake_prefix_path c:/libraries/gtest;c:/libraries/curl)  find_package (gtest required) include_directories (${gtest_include_dirs}) find_package (curl required) include_directories (${curl_include_dirs}) 

on console: cmake .. -dcmake_prefix_path=c:/libraries/gtest;c:/libraries/curl


Comments

Popular posts from this blog

C++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

python - Selecting distinct values from a column in Peewee -