cmake find_path doesnot work on windows -



cmake find_path doesnot work on windows -

on first cmake project looks find_path not work on windows when im trying reference bundle libcurl. im using cmake 2.8.12.2.

i took @ findcurl.cmake source code , tried below:

if(win32) set(cmake_prefix_path "${win32_libs_dir}/libcurl" "${win32_libs_dir}/libcurl/include" "${win32_libs_dir}/libcurl/lib" ) find_path(curl_include_dir names curl/curl.h) # line copied first line of findcurl.cmake source message("win32_libs_dir: ${win32_libs_dir}") message("thu ${curl_include_dir}")

and result of

win32_libs_dir: ../../../lwqq_root/win32-dev "thu curl_include_dir_notfound",

by way, variable win32_libs_dir set win32-dev looks below:

└─win32-dev ├─libcurl │ ├─bin │ ├─include │ │ └─curl │ │ └─curl.h │ ├─lib │ │ └─pkgconfig │ └─samples

any thought why?

cmake

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -