curl - Imported library from ExternalProject_Add -


i want download , buld curl library sources in cmake project:

... externalproject_add(     curl_external_project     prefix curl     url https://curl.haxx.se/download/curl-7.55.1.tar.gz     configure_command ${cmake_current_binary_dir}/curl/src/curl/configure --prefix=${cmake_current_binary_dir}/curl )  add_library(curl shared imported) set_target_properties(curl properties imported_location ${cmake_current_binary_dir}/curl/lib) set_target_properties(curl properties interface_include_directories ${cmake_current_binary_dir}/curl/include) add_dependencies(curl curl_external_project)  target_link_libraries(${project_name} curl) ... 

the problem in configure time ${cmake_current_binary_dir}/curl/include directory doesn't exists, therefore cmake says cmake error in cmakelists.txt: imported target "curl" includes non-existent path.

how include libraries compiled externalproject_add?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -