Skip to content

Commit

Permalink
try to actually set LIBRARIES
Browse files Browse the repository at this point in the history
  • Loading branch information
cbezault committed Sep 25, 2019
1 parent f84ed44 commit 9030807
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
15 changes: 12 additions & 3 deletions ports/curl/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,18 @@ endif()
if(TARGET CURL::libcurl)
set(CURL_FOUND TRUE)
get_target_property(_curl_include_dirs CURL::libcurl INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(_curl_location_debug CURL::libcurl IMPORTED_LOCATION_DEBUG)
get_target_property(_curl_location_release CURL::libcurl IMPORTED_LOCATION_RELEASE)
get_target_property(_curl_link_libraries CURL::libcurl INTERFACE_LINK_LIBRARIES)

set(CURL_INCLUDE_DIRS "${_curl_include_dirs}")
#for netcdf-c
set(CURL_LIBRARY CURL::libcurl)
set(CURL_LIBRARIES CURL::libcurl)
set(CURL_LIBRARY_DEBUG "${_curl_location_debug}")
set(CURL_LIBRARY_RELEASE "${_curl_location_release}")

#For libraries which rely on CURL_LIBRAR(Y/IES)
include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake)
select_library_configurations(CURL)

set(CURL_LIBRARIES "${_curl_link_libraries}" "${CURL_LIBRARY}")
set(CURL_VERSION_STRING "${CURL_VERSION}")
endif()
14 changes: 0 additions & 14 deletions ports/netcdf-c/0001_import_curl_target.patch

This file was deleted.

1 change: 0 additions & 1 deletion ports/netcdf-c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ vcpkg_from_github(
hdf5_2.patch
fix-build-error-on-linux.patch
hdf5_3.patch
0001_import_curl_target.patch
)

#Remove outdated find modules
Expand Down

0 comments on commit 9030807

Please sign in to comment.