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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -