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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -