tag:help.appveyor.com,2012-11-13:/discussions/problems/7563-fix-for-curllib-not-foundAppVeyor: Discussion 2018-10-19T08:18:28Ztag:help.appveyor.com,2012-11-13:Comment/432922242018-01-14T05:02:06Z2018-01-14T05:02:06ZFix for curl.lib not found?<div><p>On the CMake front, fixing this was a matter of using CMake's FindCURL:</p>
<p>#Curl find_package(CURL)<br>
if(!CURL_FOUND)<br>
message(FATAL_ERROR "Notice: This program requires the Curl library, and will not be compiled.") endif()</p>
<p>And then adding ${CURL_LIBRARIES} to target_link_libraries for each executable, e.g.</p>
<p>add_executable(cdt-opt src/cdt-opt.cpp ${PROJECT_SOURCE_DIR}/src/date/src/tz.cpp)<br>
target_link_libraries(cdt-opt ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${CURL_LIBRARIES})</p>
<p>In AppVeyor, I used conda to install a working version of Curl findable by CMake:</p>
<p>conda install -c conda-forge curl -y</p>
<p>This should be in the next release of my project (it's currently in feature/AppVeyor) once I work through the LNK2019 errors.</p></div>acgetchell